mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-10 14:51:06 +01:00
Use "~~del~~" remarkup style in Phabricator
Summary: Add @20after4's new rule to the Phabricator engine. Test Plan: Wrote some ~~deleted~~ text. Reviewers: 20after4, btrahan Reviewed By: btrahan CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1972
This commit is contained in:
parent
6c412961eb
commit
460a462164
3 changed files with 6 additions and 3 deletions
|
@ -146,6 +146,7 @@ class PhabricatorMarkupEngine {
|
|||
$rules[] = new PhutilRemarkupRuleEscapeHTML();
|
||||
$rules[] = new PhutilRemarkupRuleBold();
|
||||
$rules[] = new PhutilRemarkupRuleItalic();
|
||||
$rules[] = new PhutilRemarkupRuleDel();
|
||||
|
||||
$blocks = array();
|
||||
$blocks[] = new PhutilRemarkupEngineRemarkupQuotesBlockRule();
|
||||
|
|
|
@ -29,6 +29,7 @@ phutil_require_module('phutil', 'markup/engine/remarkup/blockrule/remarkuplitera
|
|||
phutil_require_module('phutil', 'markup/engine/remarkup/blockrule/remarkupnote');
|
||||
phutil_require_module('phutil', 'markup/engine/remarkup/blockrule/remarkupquotes');
|
||||
phutil_require_module('phutil', 'markup/engine/remarkup/markuprule/bold');
|
||||
phutil_require_module('phutil', 'markup/engine/remarkup/markuprule/del');
|
||||
phutil_require_module('phutil', 'markup/engine/remarkup/markuprule/escapehtml');
|
||||
phutil_require_module('phutil', 'markup/engine/remarkup/markuprule/escaperemarkup');
|
||||
phutil_require_module('phutil', 'markup/engine/remarkup/markuprule/hyperlink');
|
||||
|
|
|
@ -18,7 +18,7 @@ formatting text in Remarkup.
|
|||
|
||||
These are inline styles, and can be applied to most text:
|
||||
|
||||
**bold** //italic// ##monospaced## `monospaced`
|
||||
**bold** //italic// ##monospaced## `monospaced` ~~deleted~~
|
||||
D123 T123 rX123 # Link to Objects
|
||||
{D123} {T123} # Link to Objects (Full Name)
|
||||
{F123} # Embed Images
|
||||
|
@ -47,9 +47,10 @@ Format **basic text styles** like this:
|
|||
//italic text//
|
||||
##monospaced text##
|
||||
`monospaced text`
|
||||
~~deleted text~~
|
||||
|
||||
Those produce **bold text**, //italic text//, ##monospaced text## and
|
||||
`monospaced text`, respectively.
|
||||
Those produce **bold text**, //italic text//, ##monospaced text##,
|
||||
`monospaced text` and ~~deleted text~~, respectively.
|
||||
|
||||
= Layout =
|
||||
|
||||
|
|
Loading…
Reference in a new issue