Merge pull request #149 from blaenk/underline-fix
allow the HOEDOWN_EXT_UNDERLINE to work
This commit is contained in:
commit
59243b5499
4 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||
|
|
1
test/Tests/Underline.html
Normal file
1
test/Tests/Underline.html
Normal file
|
@ -0,0 +1 @@
|
|||
<p>This <u>underline</u> will work.</p>
|
1
test/Tests/Underline.text
Normal file
1
test/Tests/Underline.text
Normal file
|
@ -0,0 +1 @@
|
|||
This _underline_ will work.
|
|
@ -101,6 +101,11 @@
|
|||
"input": "Tests/Math.text",
|
||||
"output": "Tests/Math.html",
|
||||
"flags": ["--math"]
|
||||
},
|
||||
{
|
||||
"input": "Tests/Underline.text",
|
||||
"output": "Tests/Underline.html",
|
||||
"flags": ["--underline"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue