smu
smu copied to clipboard
incorrect handling of link delimiters
[foo]
[bar](baz)
produces
<p><a href="baz">foo]
[bar</a></p>
instead of the expected
<p>[foo]
<a href="baz">bar</a></p>
Inserting a linebreak gives the expected behaviour. However, if the [foo] is in a table, it seems like the number of linebreaks or other content in between doesn't matter.
|[foo]|
[bar](baz)
gives
<table>
<tr><th><a href="baz">foo]</th></tr>
</table>
<p>[bar</p>
</a>
Thanks for the bug report. I suggest a fix in https://github.com/karlb/smu/pull/21, but I'm not sure I want to merge it like that yet.