mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 04:20:55 +01:00
Fix for escaping character "'".
Summary: The position of the custom rule was incorrect. Test Plan: Tested that Facebook task remarkup, Differential remarkup, image macros, quotes, and random characters were working correctly in comment preview Reviewed By: jungejason Reviewers: jungejason CC: aran, jungejason Differential Revision: 396
This commit is contained in:
parent
d54a8b4149
commit
3c984eec56
1 changed files with 6 additions and 5 deletions
|
@ -43,11 +43,6 @@ class DifferentialMarkupEngineFactory {
|
||||||
$rules[] = new PhabricatorRemarkupRuleManiphest();
|
$rules[] = new PhabricatorRemarkupRuleManiphest();
|
||||||
$rules[] = new PhabricatorRemarkupRuleImageMacro();
|
$rules[] = new PhabricatorRemarkupRuleImageMacro();
|
||||||
|
|
||||||
$rules[] = new PhutilRemarkupRuleEscapeHTML();
|
|
||||||
$rules[] = new PhutilRemarkupRuleMonospace();
|
|
||||||
$rules[] = new PhutilRemarkupRuleBold();
|
|
||||||
$rules[] = new PhutilRemarkupRuleItalic();
|
|
||||||
|
|
||||||
$custom_rule_classes =
|
$custom_rule_classes =
|
||||||
PhabricatorEnv::getEnvConfig('differential.custom-remarkup-rules');
|
PhabricatorEnv::getEnvConfig('differential.custom-remarkup-rules');
|
||||||
if ($custom_rule_classes) {
|
if ($custom_rule_classes) {
|
||||||
|
@ -57,6 +52,12 @@ class DifferentialMarkupEngineFactory {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$rules[] = new PhutilRemarkupRuleEscapeHTML();
|
||||||
|
$rules[] = new PhutilRemarkupRuleMonospace();
|
||||||
|
$rules[] = new PhutilRemarkupRuleBold();
|
||||||
|
$rules[] = new PhutilRemarkupRuleItalic();
|
||||||
|
|
||||||
|
|
||||||
$blocks = array();
|
$blocks = array();
|
||||||
$blocks[] = new PhutilRemarkupEngineRemarkupQuotesBlockRule();
|
$blocks[] = new PhutilRemarkupEngineRemarkupQuotesBlockRule();
|
||||||
$blocks[] = new PhutilRemarkupEngineRemarkupHeaderBlockRule();
|
$blocks[] = new PhutilRemarkupEngineRemarkupHeaderBlockRule();
|
||||||
|
|
Loading…
Reference in a new issue