omd icon indicating copy to clipboard operation
omd copied to clipboard

Links inside brackets cause subsequent links not to parse

Open alan-j-hu opened this issue 1 year ago • 1 comments

Given the following Markdown:

language features from the LCF dialect of ML [[MacQueen, Harper, and Reppy
(2020)](https://smlfamily.github.io/history/SML-history.pdf)]. [Swift](https://docs.swift.org/swift-book/ReferenceManual/Patterns.html)
and
[Rust](https://doc.rust-lang.org/stable/reference/patterns.html) are two modern

OMD outputs:

language features from the LCF dialect of ML [<a href="https://smlfamily.github.io/history/SML-history.pdf">MacQueen, Harper, and Reppy
(2020)</a>]. [Swift](
https://docs.swift.org/swift-book/ReferenceManual/Patterns.html) and [Rust](
https://doc.rust-lang.org/stable/reference/patterns.html) are two modern

In other words, when a Markdown linked is contained within bracketed text, the subsequent links are not parsed.

alan-j-hu avatar Dec 20 '24 22:12 alan-j-hu

As far as I know, omd is not being actively maintained at the moment, so this issue may not be looked at in any reasonable timeframe. The recommended alternative is https://github.com/dbuenzli/cmarkit.

nojb avatar Dec 21 '24 16:12 nojb