Fix escaping asterisks within emphasis First check for escaped character, *then* look if i-th character is an emphasis character. Closes #18.
Vytautas Ĺ altenis vytas@rtfb.lt
Tue, 13 Oct 2015 19:57:07 +0300
2 files changed,
6 insertions(+),
4 deletions(-)
M
inline_test.go
→
inline_test.go
@@ -153,6 +153,9 @@ "<p>odd <em>number\nof</em> markers_ here</p>\n",
"mix of *markers_\n", "<p>mix of *markers_</p>\n", + + "*What is A\\* algorithm?*\n", + "<p><em>What is A* algorithm?</em></p>\n", } doTestsInline(t, tests) }