Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/markup/PhabricatorMarkupEngine.php
Show First 20 Lines • Show All 474 Lines • ▼ Show 20 Lines | $engine->setConfig( | ||||
'uri.allowed-protocols', | 'uri.allowed-protocols', | ||||
$options['uri.allowed-protocols']); | $options['uri.allowed-protocols']); | ||||
$engine->setConfig('differential.diff', $options['differential.diff']); | $engine->setConfig('differential.diff', $options['differential.diff']); | ||||
$engine->setConfig('header.generate-toc', $options['header.generate-toc']); | $engine->setConfig('header.generate-toc', $options['header.generate-toc']); | ||||
$engine->setConfig( | $engine->setConfig( | ||||
'syntax-highlighter.engine', | 'syntax-highlighter.engine', | ||||
$options['syntax-highlighter.engine']); | $options['syntax-highlighter.engine']); | ||||
$style_map = id(new PhabricatorDefaultSyntaxStyle()) | |||||
->getRemarkupStyleMap(); | |||||
$engine->setConfig('phutil.codeblock.style-map', $style_map); | |||||
$engine->setConfig('uri.full', $options['uri.full']); | $engine->setConfig('uri.full', $options['uri.full']); | ||||
$rules = array(); | $rules = array(); | ||||
$rules[] = new PhutilRemarkupEscapeRemarkupRule(); | $rules[] = new PhutilRemarkupEscapeRemarkupRule(); | ||||
$rules[] = new PhutilRemarkupMonospaceRule(); | $rules[] = new PhutilRemarkupMonospaceRule(); | ||||
$rules[] = new PhutilRemarkupDocumentLinkRule(); | $rules[] = new PhutilRemarkupDocumentLinkRule(); | ||||
▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines |