Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/markup/PhabricatorMarkupEngine.php
Show First 20 Lines • Show All 520 Lines • ▼ Show 20 Lines | public static function newMarkupEngine(array $options) { | ||||
if (isset($options['uri.same-window'])) { | if (isset($options['uri.same-window'])) { | ||||
$engine->setConfig('uri.same-window', $options['uri.same-window']); | $engine->setConfig('uri.same-window', $options['uri.same-window']); | ||||
} | } | ||||
$rules = array(); | $rules = array(); | ||||
$rules[] = new PhutilRemarkupEscapeRemarkupRule(); | $rules[] = new PhutilRemarkupEscapeRemarkupRule(); | ||||
$rules[] = new PhutilRemarkupEvalRule(); | $rules[] = new PhutilRemarkupEvalRule(); | ||||
$rules[] = new PhutilRemarkupMonospaceRule(); | $rules[] = new PhutilRemarkupMonospaceRule(); | ||||
$rules[] = new PhutilRemarkupHexColorCodeRule(); | |||||
$rules[] = new PhutilRemarkupDocumentLinkRule(); | $rules[] = new PhutilRemarkupDocumentLinkRule(); | ||||
$rules[] = new PhabricatorNavigationRemarkupRule(); | $rules[] = new PhabricatorNavigationRemarkupRule(); | ||||
$rules[] = new PhabricatorKeyboardRemarkupRule(); | $rules[] = new PhabricatorKeyboardRemarkupRule(); | ||||
$rules[] = new PhabricatorConfigRemarkupRule(); | $rules[] = new PhabricatorConfigRemarkupRule(); | ||||
if ($options['youtube']) { | if ($options['youtube']) { | ||||
$rules[] = new PhabricatorYoutubeRemarkupRule(); | $rules[] = new PhabricatorYoutubeRemarkupRule(); | ||||
▲ Show 20 Lines • Show All 206 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0