3 abstract class PhutilMarkupEngine
extends Phobject
{
6 * Set a configuration parameter which the engine can read to customize how
7 * the text is marked up. This is a generic interface; consult the
8 * documentation for specific rules and blocks for what options are available
11 * @param string Key to set in the configuration dictionary.
12 * @param string Value to set.
15 abstract public function setConfig($key, $value);
18 * After text has been marked up with @{method:markupText}, you can retrieve
19 * any metadata the markup process generated by calling this method. This is
20 * a generic interface that allows rules to export extra information about
21 * text; consult the documentation for specific rules and blocks to see what
22 * metadata may be available in your configuration.
24 * @param string Key to retrieve from metadata.
25 * @param mixed Default value to return if the key is not available.
26 * @return mixed Metadata property, or default value.
28 abstract public function getTextMetadata($key, $default = null);
30 abstract public function markupText($text);