Page MenuHomeClusterLabs Projects
Diviner Tech Docs PhutilRemarkupEngine

final class PhutilRemarkupEngine
Phorge Technical Documentation (Remarkup)

This class is not documented.

Methods

public function setConfig($key, $value)

PhutilMarkupEngine

Set a configuration parameter which the engine can read to customize how the text is marked up. This is a generic interface; consult the documentation for specific rules and blocks for what options are available for configuration.

PhutilRemarkupEngine
This method is not documented.
Parameters
string$keyKey to set in the configuration dictionary.
string$valueValue to set.
Return
this

public function getTextMetadata($key, $default)

PhutilMarkupEngine

After text has been marked up with markupText(), you can retrieve any metadata the markup process generated by calling this method. This is a generic interface that allows rules to export extra information about text; consult the documentation for specific rules and blocks to see what metadata may be available in your configuration.

PhutilRemarkupEngine
This method is not documented.
Parameters
string$keyKey to retrieve from metadata.
mixed$defaultDefault value to return if the key is not available.
Return
mixedMetadata property, or default value.

public function markupText($text)

This method is not documented.
Parameters
$text
Return
wild

public function getConfig($key, $default)

This method is not documented.
Parameters
$key
$default
Return
wild

public function setMode($mode)

This method is not documented.
Parameters
$mode
Return
wild

public function isTextMode()

This method is not documented.
Return
wild

public function isAnchorMode()

This method is not documented.
Return
wild

public function isHTMLMailMode()

This method is not documented.
Return
wild

public function getQuoteDepth()

This method is not documented.
Return
wild

public function setQuoteDepth($depth)

This method is not documented.
Parameters
$depth
Return
wild

public function setBlockRules($rules)

This method is not documented.
Parameters
array$rules
Return
wild

public function setTextMetadata($key, $value)

This method is not documented.
Parameters
$key
$value
Return
wild

public function storeText($text)

This method is not documented.
Parameters
$text
Return
wild

public function overwriteStoredText($token, $new_text)

This method is not documented.
Parameters
$token
$new_text
Return
wild

public function pushState($state)

This method is not documented.
Parameters
$state
Return
wild

public function popState($state)

This method is not documented.
Parameters
$state
Return
wild

public function getState($state)

This method is not documented.
Parameters
$state
Return
wild

public function preprocessText($text)

This method is not documented.
Parameters
$text
Return
wild

private function splitTextIntoBlocks($text, $depth)

This method is not documented.
Parameters
$text
$depth
Return
wild

private function markupBlock($block)

This method is not documented.
Parameters
array$block
Return
wild

private function flattenOutput($output)

This method is not documented.
Parameters
array$output
Return
wild

private static function shouldMergeParagraphBlocks($text, $last_block, $current_block)

This method is not documented.
Parameters
$text
$last_block
$current_block
Return
wild

private static function isEmptyBlock($text, $start, $num_lines)

This method is not documented.
Parameters
$text
$start
$num_lines
Return
wild

public function postprocessText($dict)

This method is not documented.
Parameters
array$dict
Return
wild

public function restoreText($text)

This method is not documented.
Parameters
$text
Return
wild