diff options
Diffstat (limited to 'vendor/league/html-to-markdown/README.md')
-rw-r--r-- | vendor/league/html-to-markdown/README.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/league/html-to-markdown/README.md b/vendor/league/html-to-markdown/README.md index 8d75649d6..ab80541e6 100644 --- a/vendor/league/html-to-markdown/README.md +++ b/vendor/league/html-to-markdown/README.md @@ -13,7 +13,7 @@ HTML To Markdown for PHP Library which converts HTML to [Markdown](http://daringfireball.net/projects/markdown/) for your sanity and convenience. -**Requires**: PHP 5.3+ +**Requires**: PHP 5.3+ or PHP 7.0+ **Lead Developer**: [@colinodell](http://twitter.com/colinodell) @@ -97,15 +97,15 @@ $markdown = $converter->convert($html); // $markdown now contains "" ### Style options -Bold and italic tags are converted using the asterisk syntax by default. Change this to the underlined syntax using the `bold_style` and `italic_style` options. +By default bold tags are converted using the asterisk syntax, and italic tags are converted using the underlined syntax. Change these by using the `bold_style` and `italic_style` options. ```php $converter = new HtmlConverter(); -$converter->getConfig()->setOption('italic_style', '_'); +$converter->getConfig()->setOption('italic_style', '*'); $converter->getConfig()->setOption('bold_style', '__'); $html = '<em>Italic</em> and a <strong>bold</strong>'; -$markdown = $converter->convert($html); // $markdown now contains "_Italic_ and a __bold__" +$markdown = $converter->convert($html); // $markdown now contains "*Italic* and a __bold__" ``` ### Line break options |