diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 75c8f771c3..5f3caa6a35 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -353,6 +353,7 @@ phutil_register_library_map(array( 'PhabricatorProjectProfileController' => 'applications/project/controller/profile', 'PhabricatorRedirectController' => 'applications/base/controller/redirect', 'PhabricatorRemarkupRuleDifferential' => 'infrastructure/markup/remarkup/markuprule/differential', + 'PhabricatorRemarkupRuleDiffusion' => 'infrastructure/markup/remarkup/markuprule/diffusion', 'PhabricatorRemarkupRuleManiphest' => 'infrastructure/markup/remarkup/markuprule/maniphest', 'PhabricatorRepository' => 'applications/repository/storage/repository', 'PhabricatorRepositoryArcanistProject' => 'applications/repository/storage/arcanistproject', @@ -728,6 +729,7 @@ phutil_register_library_map(array( 'PhabricatorProjectProfileController' => 'PhabricatorProjectController', 'PhabricatorRedirectController' => 'PhabricatorController', 'PhabricatorRemarkupRuleDifferential' => 'PhutilRemarkupRule', + 'PhabricatorRemarkupRuleDiffusion' => 'PhutilRemarkupRule', 'PhabricatorRemarkupRuleManiphest' => 'PhutilRemarkupRule', 'PhabricatorRepository' => 'PhabricatorRepositoryDAO', 'PhabricatorRepositoryArcanistProject' => 'PhabricatorRepositoryDAO', diff --git a/src/applications/differential/parser/markup/DifferentialMarkupEngineFactory.php b/src/applications/differential/parser/markup/DifferentialMarkupEngineFactory.php index 0764af8c36..1eefbb60a1 100644 --- a/src/applications/differential/parser/markup/DifferentialMarkupEngineFactory.php +++ b/src/applications/differential/parser/markup/DifferentialMarkupEngineFactory.php @@ -28,6 +28,7 @@ class DifferentialMarkupEngineFactory { $rules[] = new PhutilRemarkupRuleHyperlink(); $rules[] = new PhabricatorRemarkupRuleDifferential(); + $rules[] = new PhabricatorRemarkupRuleDiffusion(); $rules[] = new PhabricatorRemarkupRuleManiphest(); $rules[] = new PhutilRemarkupRuleEscapeHTML(); diff --git a/src/applications/differential/parser/markup/__init__.php b/src/applications/differential/parser/markup/__init__.php index 6ee3f666db..7bc7a32d5a 100644 --- a/src/applications/differential/parser/markup/__init__.php +++ b/src/applications/differential/parser/markup/__init__.php @@ -7,6 +7,7 @@ phutil_require_module('phabricator', 'infrastructure/markup/remarkup/markuprule/differential'); +phutil_require_module('phabricator', 'infrastructure/markup/remarkup/markuprule/diffusion'); phutil_require_module('phabricator', 'infrastructure/markup/remarkup/markuprule/maniphest'); phutil_require_module('phutil', 'markup/engine/remarkup'); diff --git a/src/infrastructure/markup/remarkup/markuprule/diffusion/PhabricatorRemarkupRuleDiffusion.php b/src/infrastructure/markup/remarkup/markuprule/diffusion/PhabricatorRemarkupRuleDiffusion.php new file mode 100644 index 0000000000..2b5651baa2 --- /dev/null +++ b/src/infrastructure/markup/remarkup/markuprule/diffusion/PhabricatorRemarkupRuleDiffusion.php @@ -0,0 +1,37 @@ +getEngine()->storeText( + 'r'.$matches[1].''); + } + +} diff --git a/src/infrastructure/markup/remarkup/markuprule/diffusion/__init__.php b/src/infrastructure/markup/remarkup/markuprule/diffusion/__init__.php new file mode 100644 index 0000000000..6a97fcbf90 --- /dev/null +++ b/src/infrastructure/markup/remarkup/markuprule/diffusion/__init__.php @@ -0,0 +1,12 @@ +