diff options
author | zotlabs <mike@macgirvin.com> | 2019-11-08 13:10:24 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2019-11-08 13:10:24 -0800 |
commit | 00dd52317adb0f7db339649e076df331975a8398 (patch) | |
tree | d9559c19aafb1fb0ead583aeab662b1f9a94d2a5 /vendor/league/html-to-markdown/src/HtmlConverter.php | |
parent | 17522b31e9d7f092ecf5565ec28be270af7fad7b (diff) | |
parent | 163b1ee9f82985755f8e74fd144780ae08ce4030 (diff) | |
download | volse-hubzilla-00dd52317adb0f7db339649e076df331975a8398.tar.gz volse-hubzilla-00dd52317adb0f7db339649e076df331975a8398.tar.bz2 volse-hubzilla-00dd52317adb0f7db339649e076df331975a8398.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'vendor/league/html-to-markdown/src/HtmlConverter.php')
-rw-r--r-- | vendor/league/html-to-markdown/src/HtmlConverter.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/league/html-to-markdown/src/HtmlConverter.php b/vendor/league/html-to-markdown/src/HtmlConverter.php index 3381e1e1e..846131af6 100644 --- a/vendor/league/html-to-markdown/src/HtmlConverter.php +++ b/vendor/league/html-to-markdown/src/HtmlConverter.php @@ -40,6 +40,7 @@ class HtmlConverter implements HtmlConverterInterface 'remove_nodes' => '', // space-separated list of dom nodes that should be removed. example: 'meta style script' 'hard_break' => false, // Set to true to turn <br> into `\n` instead of ` \n` 'list_item_style' => '-', // Set the default character for each <li> in a <ul>. Can be '-', '*', or '+' + 'preserve_comments' => false, // Set to true to preserve comments, or set to an array of strings to preserve specific comments ); $this->environment = Environment::createDefaultEnvironment($defaults); @@ -229,13 +230,13 @@ class HtmlConverter implements HtmlConverterInterface return trim($markdown, "\n\r\0\x0B"); } - + /** * Pass a series of key-value pairs in an array; these will be passed * through the config and set. * The advantage of this is that it can allow for static use (IE in Laravel). * An example being: - * + * * HtmlConverter::setOptions(['strip_tags' => true])->convert('<h1>test</h1>'); */ public function setOptions(array $options) |