martinheidegger / markdown-it-replace-link

markdown-it plugin for replacing links (image & text) in the markdown document.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fail to parse `<center>![](~/35)`

jinzcdev opened this issue · comments

I found it unable to parse <center>![](~/35)

@jinzcdev Thank you for having interest in this library. I added a testcase in 5d9a488 to verify this.

If you mix html + markdown you need to put in an empty line in order for it to be processed. Like this:

<center>![](~/35)

<center>

![](~/35)

Maybe this behavior can be chanced as part of the Markdown-it settings. But this library can not support it, sorry.