mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-20 13:52:40 +01:00
Highlight monospace first
Summary: It should be possible to write `D1234` and others without making links from them. Depends on D1913. Test Plan: `D1234` `<a href="">` Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1915
This commit is contained in:
parent
345340005b
commit
9f849b9fab
1 changed files with 1 additions and 1 deletions
|
@ -106,6 +106,7 @@ class PhabricatorMarkupEngine {
|
||||||
|
|
||||||
$rules = array();
|
$rules = array();
|
||||||
$rules[] = new PhutilRemarkupRuleEscapeRemarkup();
|
$rules[] = new PhutilRemarkupRuleEscapeRemarkup();
|
||||||
|
$rules[] = new PhutilRemarkupRuleMonospace();
|
||||||
|
|
||||||
$custom_rule_classes = $options['custom-inline'];
|
$custom_rule_classes = $options['custom-inline'];
|
||||||
if ($custom_rule_classes) {
|
if ($custom_rule_classes) {
|
||||||
|
@ -143,7 +144,6 @@ class PhabricatorMarkupEngine {
|
||||||
$rules[] = new PhabricatorRemarkupRuleMention();
|
$rules[] = new PhabricatorRemarkupRuleMention();
|
||||||
|
|
||||||
$rules[] = new PhutilRemarkupRuleEscapeHTML();
|
$rules[] = new PhutilRemarkupRuleEscapeHTML();
|
||||||
$rules[] = new PhutilRemarkupRuleMonospace();
|
|
||||||
$rules[] = new PhutilRemarkupRuleBold();
|
$rules[] = new PhutilRemarkupRuleBold();
|
||||||
$rules[] = new PhutilRemarkupRuleItalic();
|
$rules[] = new PhutilRemarkupRuleItalic();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue