Changed
max_delimiters_per_linenow counts each delimiter character instead of each run of delimiters, so**counts as 2 and a run of 50 underscores counts as 50; if you set a low limit, you may need to raise it- Attribute lists longer than 8192 bytes are no longer parsed by
AttributesExtension - In an unquoted attribute value, a
}now ends the attribute list unless another}follows in the same value; for example,{a={1,2} #b}now setsa="{1,2"and leaves#b}as text. Quote values that contain}. Adjacent unquoted lists such as{a=b}{c=d}are now parsed as two lists instead of one - Malformed attribute lists such as
{a=ba=b}and{.a =b}are now left as text; previously they were partially parsed and the rest silently dropped
Fixed
- Fixed
max_delimiters_per_linenot limiting long runs of delimiters, allowing a single pair of very long_or*runs to produce deeply-nested emphasis that takes quadratic time to render, which could be abused to cause a denial of service (GHSA-h4px-59g8-q37c) - Fixed the
AttributesExtensionbacktracking excessively when a paragraph or line contains many{that don't form a valid attribute list, which could be abused to cause a denial of service (GHSA-8q9g-2c37-97xp) - Fixed a line such as
[foo]: /url [bar]: /otherbeing parsed as a link reference definition forbarinstead of a paragraph (#1174) - Fixed
AttributesExtensionthrowing an error or renderingclass="1"when givenclass=true;class=trueandid=truenow set the literal valuetrueinstead of a boolean attribute - Fixed
AttributesExtensiondropping attributes written with a space before=({x =true}), and keeping the quotes in a value written with a space after=({x= "a b"}) - Fixed
HeadingPermalinkExtensionthrowing aTypeErrorwhenapply_id_to_headingis enabled and a heading's existingidattribute is not a string; an empty or non-stringidis now replaced with the generated slug