Closed matklad closed 1 year ago
This is actually according to spec.
In cases of ambiguity,
{
and}
may be used to mark delimiters as openers or closers. Thus{_
behaves like_
but can only open emphasis, while_}
behaves like_
but can only close emphasis:
Nothing here says that {_
must pair with _}
; it can be closed by any _
which can close emphasis.
I agree, though, that visually you'd expect something else here.
I'd have to think about what would be required to add the rule that an explicit {x
marker can only be closed by an explicit x}
.
This is somewhat counter-intuitively parsed as
<em> x</em> _}
, not as<em> x_ </em>