Skip to content

Commit c748751

Browse files
committed
Support <IGNORE> properly with code from icyleaf#90
1 parent 05840f6 commit c748751

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

spec/fixtures/gfm-extensions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ http://🍄.ga/ http://x🍄.ga/
640640
```````````````````````````````` example
641641
This shouldn't crash everything: (_A_@_.A
642642
.
643-
<p>This shouldn't crash everything: (<em>A</em>@_.A</p>
643+
<IGNORE>
644644
````````````````````````````````
645645

646646
```````````````````````````````` example

spec/spec_helper.cr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ def assert_example(file, section, index, example, smart, gfm = false)
6262
else
6363
it "- #{index}\n#{show_space(markdown)}", file, line do
6464
output = Markd.to_html(markdown, options)
65+
next if html == "<IGNORE>\n"
66+
6567
output.should eq(html), file: file, line: line
6668
end
6769
end

0 commit comments

Comments
 (0)