HtmlToFarHelp fails on formatting inside link's body
johnd0e opened this issue · 1 comments
johnd0e commented
Consider such source sample:
Test 1
======
[Sample _link_](http://example.com)
html
<h2>Test 1</h2>
<p><a href="http://example.com"><em>Sample</em> link</a></p>
This produces such hlf link: ~Sample ~@http://example.com@#link#
. (Notice that link
-part is here outside the link. But ok.)
Now consider another sample:
Test 1
======
[_Sample_ link](http://example.com)
html
<h2>Test 2</h2>
<p><a href="http://example.com"><em>Sample</em> link</a></p>
Such input now causes an error: Invalid or not supported HTML: Expected <a href=...>...</a>. At test2.html:2:34
I suppose that simplest way would be just to skip any formatting in link's body.
nightroman commented
v1.3.4