smu icon indicating copy to clipboard operation
smu copied to clipboard

incorrect handling of link delimiters

Open aabacchus opened this issue 6 months ago • 1 comments

[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>

aabacchus avatar Jun 16 '25 11:06 aabacchus

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.

karlb avatar Jul 02 '25 05:07 karlb