Since the RedCloth API layer is now deprecated and will be removed in 4.0, let's move this class to its own file to make the main one more clear. We would have to require "redcarpet/compat" to be fully backward compatible but the RedcarpetCompat class shouldn't be use anyway. It is just a convenient way not to override the `Markdown` one if it already exist.
This basically reverts facd5c5. We should not change any method's arity between point releases.
Using the `header` callback, 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. Since the `HTML_TOC` and `HTML` objects both have this callback, it's advisable to define a module and mix it in these objects to avoid code duplication. Resolves #310
Add PHP-Markdown style footnotes support Conflicts: test/html_render_test.rb
This commit fix #175. When using the StripDown render, special new lines characters (\n) weren't added for paragraphs. Also enable this for headers. Add simple tests to ensure the creation of these new lines.
This is `*italic*` and this is `_underline_` when enabled.
Support old-style extensions in RedcarpetCompat.
And ignore any mappings that are no longer supported.
Also add in compatibility layer to translate some old extension names to their respective new names.
...And I thought I was going to have a good weekend.
Backported all the Sundown changes from Sundown 2.0b Featuring: - Proper UTF-8 support! (all rendered text is returned with UTF-8 encoding in 1.9 now) - Performance improvements! - Corner cases against Gruber's Markdown.pl - New instantiation API: reusing the same Markdown object makes rendering a breeze.