miyakogi / m2r

Markdown to reStructuredText converter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Link not parsed correctly if wrapped around less-than/greater-than signs

0xjac opened this issue · comments

In some cases, when a link in markdown is wrapped around less-than and greater-than signs (<, >), it is not parsed properly and the rendered output is wrong.

Consider a markdown file with the following content:

<[GitHub](https://github.com)>

The rendered output straight from markdown is:

<GitHub>

Passing the file to m2r, I am expecting the output to be:

<`GitHub <https://github.com>`_>

However the actual output is:

[GitHub](https://github.com)