Redcarpet v3.5.0 Release NotesRelease Date: 2019-07-29 // 6 months ago
🚀 This release mostly ships with bug fixes and tiny improvements.
👀 Avoid mutating the options hash passed to a render object (See #663).
Automatically enable the
fenced_code_blocksoption passing a
HTML_TOCobject to the
Markdownobject's constructor since some languages rely on the sharp to comment code (See #451).
✂ Remove the
revattributes from the output generated for footnotes as they don't pass the HTML 5 validation (See #536).
👍 Allow passing
Rangeobjects to the
nesting_leveloption to have a higher level of customization for table of contents (See #519):
🐛 Bug fixes
🛠 Fix a segfault rendering quotes using
🛠 Fix SmartyPants single quotes right after a link. For example:
Will now properly converts
'to a right single quote (i.e.
Previous changes from v3.4.0
🚀 This new release ships with a bunch of bug fixes especially regarding anchor generation.
👌 Improvements to anchor generation
The anchor generation now relies on a djb2 hashing algorithm whenever the generated anchor is empty as non alpha-numeric chars. This is specifically interesting for CJK contents as Redcarpet used to generate empty anchors dealing with titles in these locales.
Special thanks to Alexey Kopytko and namusyaka for their work on that !
🚚 Also now, the html-escaped entities are removed from anchors generated with the
HTMLrender in order to be consistent with the
HTML_TOCrender and as it is more expected.
- Table headers don't require a minimum of three dashes anymore; a single one can be used for each row.
- The Markdown and rendering options are now exposed through a
@optionsinstance variable inside your custom render objects.
🐛 Bug fixes
- 📜 Multiple single quote pairs are parsed correctly with SmartyPants.
- ✂ Remove periods at the end of URLs when autolinking to make sure
that links at the end of a sentence get properly generated.
- Avoid escaping ampersands in href links.
Checkout the CHANGELOG for further information and changes.