Link "DNNNN" and "TNNNN" in Phabricator remarkup.

Summary: Autolink Differential and Maniphest objects.

Test Plan: Typed "D12345" and "T12345" into the Differential comment preview,
got links. Typed "http://www.elsewhere.com/D12345" and got a single link to
that URI, not a mess where the D12345 part linked incorrectly.

Reviewers: aran

CC:

Differential Revision: 35
This commit is contained in:
epriestley
2011-02-11 18:06:43 -08:00
parent 1bb055d163
commit 8784b5bd3b
8 changed files with 110 additions and 0 deletions

View File

@@ -24,6 +24,10 @@ class DifferentialMarkupEngineFactory {
$rules = array();
$rules[] = new PhutilRemarkupRuleEscapeRemarkup();
$rules[] = new PhutilRemarkupRuleHyperlink();
$rules[] = new PhabricatorRemarkupRuleDifferential();
$rules[] = new PhabricatorRemarkupRuleManiphest();
$rules[] = new PhutilRemarkupRuleEscapeHTML();
$rules[] = new PhutilRemarkupRuleMonospace();
$rules[] = new PhutilRemarkupRuleBold();