Redcarpet v3.3.0 Release Notes

Release Date: 2015-06-05 // almost 9 years ago
  • Redcarpet v3.3.0

    ๐Ÿš€ This new release ships with a bunch of bug fixes and improvements especially regarding anchor generation.

    ๐Ÿ‘Œ Improvements to anchors

    ๐Ÿ‘ The anchor generation algorithm has been improved. It now correctly strips out non-alphanumeric chars from the generated string ; it tries as much as possible to match the behavior of the Active Support's #parameterize method.

    Moreover, Redcarpet used to HTML-escape anchors rendered through the HTMl_TOC render. This is no longer the case but if you want this behavior back for any reason, you can now pass the :escape_html option instantiating the object.

    ๐Ÿ’ป Redcarpet's command line interface

    ๐Ÿ“œ The plain old Ruby file that was provided as a bin script now relies on a brand new API that you can use and that uses Ruby's OptionParser.

    ๐Ÿ“š This allows you to create custom scripts for your needs. You can handle the provided files as you want and add new options or fall-backs (e.g. an option to use Pygments). Read the documentation of the Redcarpet::CLI class for further information.

    ๐Ÿ—„ Undeprecate the RedCloth API compatibility layer

    ๐Ÿš€ This release actually un-deprecates the RedCloth API compatibility layer. Since Redcarpet provides a different API than most processors, it turned out that this layer is used in libraries that provide support for different Markdown parsers.

    ๐Ÿ› Bug fixes

    ๐Ÿ›  As usual, some bugs have been fixed:

    • ๐Ÿ”— Avoid parsing images when the given URL isn't safe and the :safe_links_only option is enabled.
    • Add the lang- prefix in front of the language's name when using :prettify along with :fenced_code_blocks.

    Check out the CHANGELOG for further information.