Skip to content

Commit

Permalink
Merge pull request hoedown#149 from blaenk/underline-fix
Browse files Browse the repository at this point in the history
allow the HOEDOWN_EXT_UNDERLINE to work
  • Loading branch information
mildsunrise committed Jan 31, 2015
2 parents ef84eab + 9b789d2 commit 59243b5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/document.c
Original file line number Diff line number Diff line change
Expand Up @@ -2751,7 +2751,7 @@ hoedown_document_new(

memset(doc->active_char, 0x0, 256);

if (doc->md.emphasis || doc->md.double_emphasis || doc->md.triple_emphasis) {
if (doc->md.emphasis || doc->md.double_emphasis || doc->md.triple_emphasis || doc->md.underline) {
doc->active_char['*'] = MD_CHAR_EMPHASIS;
doc->active_char['_'] = MD_CHAR_EMPHASIS;
if (extensions & HOEDOWN_EXT_STRIKETHROUGH)
Expand Down
1 change: 1 addition & 0 deletions test/Tests/Underline.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>This <u>underline</u> will work.</p>
1 change: 1 addition & 0 deletions test/Tests/Underline.text
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This _underline_ will work.
5 changes: 5 additions & 0 deletions test/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@
"input": "Tests/Math.text",
"output": "Tests/Math.html",
"flags": ["--math"]
},
{
"input": "Tests/Underline.text",
"output": "Tests/Underline.html",
"flags": ["--underline"]
}
]
}

0 comments on commit 59243b5

Please sign in to comment.