From ca83e4c6a8642290713b40ca43653e04ebc2c54d Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 17 Jul 2014 14:49:11 -0700 Subject: [PATCH] Adjust Phriction remarkup rule priority Summary: Fixes T5645. See D9964. Test Plan: Accurate link for `[[ xyz | T25 ]]`. Here are the priorities: ``` 0 PhutilRemarkupRuleEscapeRemarkup 100 PhutilRemarkupRuleMonospace 150 PhutilRemarkupRuleDocumentLink 175 PhrictionRemarkupRule 200 HarbormasterRemarkupRule 200 PhabricatorRemarkupRuleEmbedFile 200 DivinerRemarkupRuleSymbol 200 PhabricatorCountdownRemarkupRule 200 LegalpadDocumentRemarkupRule 200 PhabricatorRemarkupRuleMeme 200 PassphraseRemarkupRule 200 PhabricatorRemarkupRuleIcon 200 SlowvoteRemarkupRule 200 HeraldRemarkupRule 200 PhabricatorPasteRemarkupRule 200 ProjectRemarkupRule 200 DiffusionCommitRemarkupRule 200 DiffusionRepositoryRemarkupRule 200 DifferentialRemarkupRule 200 PonderRemarkupRule 200 ManiphestRemarkupRule 200 PhabricatorDashboardRemarkupRule 200 PholioRemarkupRule 350 PhabricatorRemarkupRuleYoutube 350 DoorkeeperRemarkupRuleAsana 350 DoorkeeperRemarkupRuleJIRA 400 PhutilRemarkupRuleHyperlink 500 CustomInlineCodeRule 500 CustomInlineJIRA5Rule 500 PhabricatorRemarkupRuleImageMacro 500 PhabricatorRemarkupRuleMention 1000 PhutilRemarkupRuleBold 1000 PhutilRemarkupRuleUnderline 1000 PhutilRemarkupRuleDel 1000 PhutilRemarkupRuleItalic ``` Reviewers: btrahan, joshuaspence Reviewed By: joshuaspence Subscribers: epriestley Maniphest Tasks: T5645 Differential Revision: https://secure.phabricator.com/D9965 --- src/applications/phriction/remarkup/PhrictionRemarkupRule.php | 2 +- src/infrastructure/markup/PhabricatorMarkupEngine.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/applications/phriction/remarkup/PhrictionRemarkupRule.php b/src/applications/phriction/remarkup/PhrictionRemarkupRule.php index b8f61b2c02..48eb9cc3ee 100644 --- a/src/applications/phriction/remarkup/PhrictionRemarkupRule.php +++ b/src/applications/phriction/remarkup/PhrictionRemarkupRule.php @@ -3,7 +3,7 @@ final class PhrictionRemarkupRule extends PhutilRemarkupRule { public function getPriority() { - return 350.0; + return 175.0; } public function apply($text) { diff --git a/src/infrastructure/markup/PhabricatorMarkupEngine.php b/src/infrastructure/markup/PhabricatorMarkupEngine.php index df7fa0c887..aa89e6ea07 100644 --- a/src/infrastructure/markup/PhabricatorMarkupEngine.php +++ b/src/infrastructure/markup/PhabricatorMarkupEngine.php @@ -41,7 +41,7 @@ final class PhabricatorMarkupEngine { private $objects = array(); private $viewer; - private $version = 12; + private $version = 13; /* -( Markup Pipeline )---------------------------------------------------- */