Parses attributes from block opening tags WITHOUT safety filtering.
Use this for block-specific parameters (like type on [[code]]) that
are not emitted as HTML attributes and therefore do not need XSS
protection. The parsing logic is identical to parseAttributes
except the result is returned as-is.
Hyphenated name handling is configurable because some contexts (e.g.
code block with data-src) should treat hyphens as part of the name,
while others should not.
Also handles STRIKE_MARKER tokens (--) in attribute name positions,
which can appear when a double hyphen is used in names like
data--something.
Parses attributes from block opening tags WITHOUT safety filtering.
Use this for block-specific parameters (like
typeon[[code]]) that are not emitted as HTML attributes and therefore do not need XSS protection. The parsing logic is identical to parseAttributes except the result is returned as-is.Hyphenated name handling is configurable because some contexts (e.g. code block with
data-src) should treat hyphens as part of the name, while others should not.Also handles STRIKE_MARKER tokens (
--) in attribute name positions, which can appear when a double hyphen is used in names likedata--something.