django-wiki
django-wiki copied to clipboard
Automatic link detection should skip text inside markdown link markup
Currently this:
[C.Python](wiki:/my-article)
is converted into this:
<a class="wikipath linknotfound" href="/wiki/my-article"></a>
<a href="http://C.Python"><span class="fa fa-external-link"></span><span>C.Python</span></a>
but should be converted into this:
<a class="wikipath linknotfound" href="/wiki/my-article">C.Python</a>
Just checked that I can reproduce on master as well
Oh that looks super weird. It would be great with a PR that introduces some proper unit testing of this markdown extension.
Thanks for finding this!
Would you be able to work on it?
I most probably won't be able to work on this until late July. If it won't be fixed by that time I'll probably take it.
Currently I went with a dirty hack of replacing C with a cyrillic С.