All Versions
Latest Version
Avg Release Cycle
190 days
Latest Release

Changelog History
Page 1

  • v3.5.1 Changes

    • ๐Ÿ›  Fix a security vulnerability using :quote in combination with the :escape_html option.

    Reported by Johan Smits.

  • v3.5.0 Changes

    July 29, 2019

    ๐Ÿš€ This release mostly ships with bug fixes and tiny improvements.

    ๐Ÿ‘Œ Improvements

    ๐Ÿ‘€ Avoid mutating the options hash passed to a render object (See #663).

    Automatically enable the fenced_code_blocks option passing a HTML_TOC object to the Markdown object's constructor since some languages rely on the sharp to comment code (See #451).

    โœ‚ Remove the rel and rev attributes from the output generated for footnotes as they don't pass the HTML 5 validation (See #536).

    ๐Ÿ‘ Allow passing Range objects to the nesting_level option to have a higher level of customization for table of contents (See #519):

    Redcarpet::Render::HTML\\_level: 2..5)

    ๐Ÿ› Bug fixes

    ๐Ÿ›  Fix a segfault rendering quotes using StripDown and the :quote option.

    ๐Ÿ›  Fix SmartyPants single quotes right after a link. For example:

    [John](http://john.doe)'s cat

    Will now properly converts ' to a right single quote (i.e. โ€™).

  • v3.4.0 Changes

    December 25, 2016

    Redcarpet 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 HTML render in order to be consistent with the HTML_TOC render and as it is more expected.

    Other improvements

    • 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 Hash inside the @options instance 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.

  • v3.3.4 Changes

    December 25, 2015
    • ๐Ÿ›  Fix bufprintf to correctly work on Windows MinGW-w64 so strings are properly written to the buffer.

    Kenichi Saita

    • ๐Ÿ›  Fix the header anchor normalization by skipping non-ASCII chars and not calling tolower because this leads to invalid UTF-8 byte sequences in the HTML output. (tolower is not locale-aware)

    Clemens Gruber

  • v3.3.3 Changes

    September 24, 2015
    • ๐Ÿ›  Fix a memory leak instantiating a Redcarpet::Render::Base object.

    Oleg Dashevskii

    • ๐Ÿ›  Fix the StripDown renderer to handle the :highlight option.

    Itay Grudev

    • The StripDown renderer handles tables if the tables extension is enabled.


    • ๐Ÿ›  Fix Smarty Pants to avoid fraction conversions when there are several numbers separated with slashes (e.g. for a date).

    Sam Saffron

  • v3.3.2 Changes

    June 22, 2015
    • ๐Ÿ›  Fix a potential security issue in the HTML renderer (Thanks to Giancarlo Canales Barreto for the heads up)
  • v3.3.1 Changes

    June 07, 2015

    ๐Ÿ›  As of version 3.3.0, the provided redcarpet executable no longer worked since it relies on a new Redcarpet::CLI class that wasn't available because its file wasn't included in the gemspec. This version fixes this.

  • v3.3.0 Changes

    June 05, 2015

    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.

  • v3.2.3 Changes

    April 07, 2015

    ๐Ÿ”’ This release of Redcarpet fixes a security issue relying on auto-linking by preventing any rewinding of a previous inline like an emphasis when auto-linking another one like an e-mail address.

    ๐Ÿš€ Also this release ships with a fix when escaping forward slashes with the Safe render object (there was a missing semi-colon).

  • v3.2.2 Changes

    December 12, 2014

    ๐Ÿš€ This release of Redcarpet is another patch release for the 3.2 series that addresses a regression that would wrap<script> tags inside paragraphs. See #440 for further details.