Commit graph

8 commits

Author SHA1 Message Date
Mike Samuel
8635ebfb43 adds a testcase for HTML comments in the middle of a block and a tweak to src/document.c that recognizes them as tags to copy over literally 2015-11-18 15:40:01 -05:00
Tzu-ping Chung
2297a4e20b Fix rendering in table with empty cells
`find_emph_char` returns 0 if the char specified is not found in the
current line, but this is also what happens when there's an empty
cell. This patch adds logic to work around this problem.

See uranusjr/macdown#321
2015-05-16 00:54:24 +08:00
Jorge Israel Peña
9b789d24a5 allow the HOEDOWN_EXT_UNDERLINE to work
When the `HOEDOWN_EXT_UNDERLINE` extension was enabled, underlined spans
would actually be passed verbatim to the output buffer. This was because
the active_char was _only_ set when the emphasis, double_emphasis, or
triple_emphasis handlers were registered. As a result, no active char
was found in the input buffer, so everything was passed through
verbatim.

This patch fixes this by also registering the `active_char` if the
underline handler is registered. I also added a simple regression test.

I personally don't use this extension, but I encountered this bug over
the course of writing bindings for Rust.
2015-01-30 19:02:37 -08:00
Steve Wolter
4825466fef Move test for formatting in table of contents to test/Tests directory.
MarkdownTest_1.0.3 directory is reserved for the standard tests from the
original Markdown spec.
2014-12-01 16:47:18 +01:00
Steve Wolter
737304d2aa Fix issue #125: Don't escape HTML tags in tables of contents.
Before this patch, a header like "# *A*" was displayed as
"<li>&lt;em&gtA&lt;/em&gt;</li>" in the TOC. The error was caused by
toc_header doing the HTML escaping. In the normal HTML renderer, the escaping
is done by the normal_text hook. This patch uses the same handling to
fix the issue.
2014-12-01 12:35:14 +01:00
Tzu-ping Chung
95ab7bb92f Enable escape character test 2014-09-09 17:14:16 +08:00
Tzu-ping Chung
b49d385be3 Add math test (modified) and tweak runner 2014-09-09 16:30:01 +08:00
Tzu-ping Chung
8cc788ec59 New Python implemented test script 2014-09-09 16:10:50 +08:00