rufuspollock/markdown2latex

Tabularx environments: Hash/Pound-Symbol of <url> is only escaped text-part of \href{}{}

h4b4n3r0 opened this issue · 0 comments

Converting an url like
<https://tex.stackexchange.com/questions/44738/hash-tag-in-href-causes-error/44750#44750>
results in

<root>

\href{https://tex.stackexchange.com/questions/44738/hash-tag-in-href-causes-error/44750#44750}{https://tex.stackexchange.com/questions/44738/hash-tag-in-href-causes-error/44750\#44750}


</root>

This is working for normal purposes. However, if you are in an tabularx environment, the #-symbol needs to be escaped everywhere. Even it is escaped, the href command will open the correct url, when you click on it in the compiled latex output. For that reason the proposed solution should be. where the # is also escaped in the link-part of the href command.

<root>

\href{https://tex.stackexchange.com/questions/44738/hash-tag-in-href-causes-error/44750\#44750}{https://tex.stackexchange.com/questions/44738/hash-tag-in-href-causes-error/44750\#44750}


</root>