mirror of
https://github.com/markedjs/marked.git
synced 2026-11-30 16:48:05 +01:00
A reference link candidate whose text already holds a link never becomes a link, but the mask em and strong read still flattened the whole span, so every emphasis marker inside it was invisible. Mask the links the text holds instead of the span, and leave images alone, since an image may hold a link. Fixes CommonMark example 533.