Repository navigation
5.2.0
This release keeps non-breaking spaces in the Markdown it outputs, and fixes several cases where the output wasn't the Markdown it should have been.
Changed
- Non-breaking spaces, as well as narrow no-break and figure spaces, are now kept as they are rather than being converted to regular spaces, so that text such as
12,50 €stays on one line (#258, #283). They're output as the characters themselves, not as . Where whitespace is dropped or trimmed, as in text consisting only of whitespace before a block and at the ends of paragraphs, list items, blockquotes and table cells, they now are too, so those used only for spacing still leave nothing behind. - Emphasis next to a non-breaking space now has it moved outside of its delimiters, which couldn't otherwise be recognized
Text containing non-breaking spaces between other characters will convert differently than before. This doesn't change how the Markdown renders, but it does change the Markdown itself.
Fixed
- Fixed headings, paragraphs and horizontal rules being output on the same line as inline content directly before them, such as an image, including inside list items (#259, #282)
- Fixed an extra blank line at the start of a code block converted from a
<pre>whose content starts with a newline (#244, #278) - Fixed links whose text is a URL containing
¬ being output as autolinks (#248, #281) - Fixed a line consisting of only
-or+not being escaped, which made it an empty list item - Fixed a non-breaking space being removed from the start of a blockquote, list item or table caption, which could leave text starting with
-to be taken as a list - Fixed whitespace between a block and a following
<pre>or<table>being output on a line of its own
Thanks to @dualfroz for the fixes for #244, #248, #258 and #259 in #278, #279, #280 and #281.
Full Changelog: 5.1.4...5.2.0