Fix a segfault rendering quotes using
warning: instance variable @options not initializedwhen running under verbose mode (
$VERBOSE = true).
Fix SmartyPants single quotes right after a link. For example:
Will now properly converts
'to a right single quote (i.e.
revattributes from the output generated for footnotes as they don't pass the HTML 5 validation.
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.
Rangeobjects to the
nesting_leveloption to have a higher level of customization for table of contents:
Rely on djb2 hashing generating anchors with non-ASCII chars.
Fix issue #538.
Alexey Kopytko, namusyaka
Added suppport for HTML 5
Fix issue #578.
Multiple single quote pairs are parsed correctly with SmartyPants.
Fix issue #549.
Table headers don't require a minimum of three dashes anymore; a single one can be used for each row.
Remove escaped entities from
HTMLrender table of contents' ids to be consistent with the
Fix issue #529.
Remove periods at the end of URLs when autolinking to make sure that links at the end of a sentence get properly generated.
Fix issue #465.
Expose the Markdown and rendering options through a
@optionsinstance variable for custom render objects.
Avoid escaping ampersands in href links.
bufprintfto correctly work on Windows MinGW-w64 so strings are properly written to the buffer.
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)
Fix a memory leak instantiating a
StripDownrenderer to handle the
StripDownrenderer handles tables if the
tablesextension is enabled.
Fix Smarty Pants to avoid fraction conversions when there are several numbers separated with slashes (e.g. for a date).
- Fix a potential security issue in the HTML renderer (Thanks to Giancarlo Canales Barreto for the heads up)
- Include the
Redcarpet::CLI's file in the gemspec to make it available when downloading.
Fix the stripping of surrounding characters that should be removed during anchor generation.
Redcarpet::CLIclass to create custom binary files.
Relying on Ruby's OptionParser, it's now straightforward to add new options, rely on custom render objects or handle differently the rendering of the provided files.
Undeprecate the compatibility layer for the old RedCloth API.
This layer actually ease the support of libraries supporting different Markdown processors.
styletags at the HTML-block rendering level when the
:no_stylesoptions is enabled ; previously they were only removed inside paragraphs.
Avoid parsing images when the given URL isn't safe and the
:safe_links_onlyoption is enabled.
Avoid parsing references inside fenced code blocks so they are now kept in the code snippet.
Avoid escaping table-of-contents' headers by default. A new
:escape_htmloption is now available for the
HTML_TOCobject if there are security concerns.
lang-prefix in front of the language's name when using
Non-alphanumeric chars are now stripped out from generated anchors (along the lines of Active Support's
Avoid rewinding content of a previous inline when autolinking is enabled.
Fix escaping of forward slashes with the
Saferender object (add a missing semi-colon).
scriptas a block-level element so it doesn't get included inside a paragraph.
RedcarpetCompatwhen requiring Redcarpet for the sake of backward compatibility.
Saferenderer to deal with users' input. The
safe_links_onlyoptions are turned on by default.
block_codecallback removes the tag's class since the user can basically set anything with the vanilla one.
HTML5 block-level tags are now recognized
StripDownrender object now displays the URL of links along with the text.
The RedCloth API compatibility layer is now deprecated.
A hyphen and an equal should not be converted to heading.
Fix emphasis character escape sequence detection while mid-emphasis.
=to the whitelist of escaped chars so it can be used inside highlighted snippets.
Convert trailing single quotes to curly quotes. For example,
Road Trippin'now converts to
Allow in-page links (e.g.
Enable emphasis inside of sentences in multi-byte languages when
:no_intra_emphasisonly match spaces. This allows using emphasizes inside quotes when the option is enabled for instance.
Jason Webb and BJ Homer
The StripDown renderer handles image tags now.
- Remove the yielding of anchors in the
headercallback. This was a breaking change between 3.0 and 3.1 as the method's arity changed.
- Fix a segfault when parsing text with headers.
Yield the anchor of the headers
headercallback, it's now possible to get access to the humanized generated id to easily keep tracking of the tree of headers or simply handle the duplicate values easily.
HTMLobjects both have this callback, it's advisable to define a module and mix it in these objects to avoid code duplication.
Allow using tabs between a reference's colon and its link
Fix issue #337
Make ordered lists preceded by paragraph parsed with
Previously, enabling the
:lax_spacingoption, if a paragraph was followed by an ordered list it was unparsed and was part of the paragraph but this is no more the case.
Feed the gemspec into ExtensionTask so that we can pre-compile. ie.
rake native gem
Revert lax indent of less than 4 characters after list items
Follow the standard to detect when new paragraph is outside last item. Fixes issue #111.
Fix code blocks' classes when using Google code prettify
When using the the
:prettifyoption and specifying the language name, the generated code block's class had a missing space.
-hflags to commandline redcarpet
Add optional quote support through the
:quoteoption. Render quotations marks to
This is a
Ensure inline markup in titles is correctly stripped when generating headers' anchor.
Revert the unescaping behavior on comments
This behavior doesn't follow the conformance suite.
Add optional footnotes support
Add PHP-Markdown style footnotes through the
Ben Dolman, Adam Florin, microjo, brief
Enable GitHub style anchors for headers
with_toc_dataoption to a
HTMLrender object now generates GitHub style anchors.
Allow to set a maximum rendering level for HTML_TOC
Allow the user to pass a
nesting_leveloption when instantiating a new HTML_TOC render object in order to limit the nesting level in the generated table of content. For example:
Remove support for Ruby 1.8.x Matt Rogers & Robin Dupret
Avoid escaping for HTML comments Robin Dupret
Make emphasis wrapped inside parenthesis parsed Robin Dupret
Remove the Sundown submodule Robin Dupret
Fix FTP uris identified as emails Robin Dupret
Add optional highlight support Sam Soffes
Ensure nested parenthesis are handled into links Robin Dupret
Ensure nested code spans put in emphasis work correctly Robin Dupret
:disable_indented_code_blocksoption Dmitriy Kiriyenko
Fix issue #57 Mike Morearty
Ensure new lines characters are inserted when using the StripDown render. Robin Dupret
Mark all symbols as hidden except the main entry point Tom Hughes
This avoids conflicts with other gems that may have some of the same symbols, such as escape_utils which also uses houdini.
Remove unnecessary function pointer Sam Soffes
Add optional underline support Sam Soffes
*italic*and this is
Test that links with quotes work Michael Grosser
Adding a prettyprint class for google-code-prettify Joel Rosenberg
Remove unused C macros Matt Rogers
Remove 'extern' definition for Init_redcarpet_rndr() Matt Rogers
Remove Gemfile.lock from the gemspec Matt Rogers
Removed extra unused test statement. Slipp D. Thompson
Use test-unit gem to get some red/green output when running tests Michael Grosser
Remove a deprecation warning and update Gemfile.lock Robin Dupret
Added contributing file Brent Beer
For tests for libxml2 > 2.8 strzibny
SmartyPants: Preserve single
backticksin HTML Mike Morearty
When SmartyPants is processing HTML, single
backticksshould be left intact. Previously they were being deleted.
Removed and ignored Gemfile.lock Ryan McGeary
Added support for org-table syntax Ryan McGeary
Adds support for using a plus (+) as an intersection character instead of requiring pipes (|). The emacs org-mode table syntax automatically manages ascii tables, but uses pluses for line intersections.
Ignore /tmp directory Ryan McGeary
Add redcarpet_ prefix for
stack_*functions Kenta Murata
Mark any html_attributes has held by a renderer as used Tom Hughes
Add Rubinius to the list of tested implementations Gibheer
Add a changelog file