S
S
shasoft2019-10-28 08:07:17
Markdown
shasoft, 2019-10-28 08:07:17

Why does commonmark convert like this?

There is a markdown text According to commonmark ("example": 521) tests, it should convert to I don't really understand the logic of this behavior. The link tag starts earlier and theoretically should be Even in the markdown syntax coloring, the text is highlighted as a link and not as a code tag. So why does the spec say it should be different?
[foo`](/uri)`
<p>[foo<code>](/uri)</code></p>
<p><a href="/uri">foo`</a>`</p>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shasoft, 2019-10-29
@shasoft

This is probably because `` cannot contain nested tags. Therefore, such elements are processed first.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question