Skip to content

2.10.8

Latest

Choose a tag to compare

@colinodell colinodell released this 24 Nov 15:45
2.10.8
681e662

Changed

  • max_delimiters_per_line now 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 sets a="{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_line not 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 AttributesExtension backtracking 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]: /other being parsed as a link reference definition for bar instead of a paragraph (#1174)
  • Fixed AttributesExtension throwing an error or rendering class="1" when given class=true; class=true and id=true now set the literal value true instead of a boolean attribute
  • Fixed AttributesExtension dropping attributes written with a space before = ({x =true}), and keeping the quotes in a value written with a space after = ({x= "a b"})
  • Fixed HeadingPermalinkExtension throwing a TypeError when apply_id_to_heading is enabled and a heading's existing id attribute is not a string; an empty or non-string id is now replaced with the generated slug