Skip to content

5.2.4

Latest

Choose a tag to compare

@colinodell colinodell released this 05 Dec 14:28
5.2.4
18ab72b

Changed

  • Converting is now around 20% faster, as less work is done for each node (#291)

Fixed

  • Fixed email links whose text is the email address still being output as autolinks, such as <test@example.com>, when use_autolinks is false (#301)
  • Fixed an extra blank line being added to the end of code blocks whose code ends in a newline, as it does in the HTML which Markdown renderers output, such as <pre><code>echo 1;\n</code></pre> (#300)
  • Fixed links to 0, such as <a href="0">Test</a>, being treated as having no destination, so that they were kept as HTML, or reduced to their text with strip_placeholder_links (#292)
  • Fixed table captions of 0 being left out (#293)
  • Fixed <!--?xml encoding="UTF-8"--> appearing at the start of the output with libxml 2.14 or newer, when comments are kept with preserve_comments or the start of the document is kept as HTML (#263, #298)
  • Fixed comments kept with preserve_comments letting HTML in them through. A comment after other text in a paragraph was escaped, so that it was output as text, along with anything inside of it. A comment could also be ended early by a blank line or the end of a heading, or by text which browsers or Markdown parsers end comments at, such as <!--> or --. Comments are no longer escaped, are kept apart from a backslash before them, are put on one line, and are left out if they would end early (#289)
  • Fixed a line of only = or - after a line break not being escaped, which made a heading out of the line before it, such as in <p>Foo<br>=</p>. Lines of - were already escaped inside of paragraphs, but not inside of list items, blockquotes or headings (#226, #286)
  • Fixed emphasis next to an empty one of the same kind losing one of its delimiters, such as <strong> </strong><strong>hello</strong> becoming hello**. Emphasis next to one of the same kind which is removed with remove_nodes also lost one (#252, #287)
  • Fixed &lt;/body&gt; or &lt;/html&gt; in code or comments causing the document's own closing tags to be output after it, and everything from &lt;!DOCTYPE in code up to the next > being removed, which could be the rest of the document (#254, #288)

Full Changelog: 5.2.3...5.2.4