Documentation

Lean.Data.Markdown.Unicode.CharacterClasses

Character Classes for the Emphasis Rules #

CommonMark's flanking rules classify the characters around a * or _ sequence as whitespace, punctuation, or other. Whitespace is the Unicode Zs category plus tab, line feed, form feed, and carriage return, and punctuation is the Unicode P and S categories. Both predicates follow Unicode 18.0.0 exactly.

Whether c is Unicode punctuation in the sense of CommonMark: a character of the P (punctuation) or S (symbol) general categories, per Unicode 18.0.0. This includes the ASCII punctuation, the mathematical operators and arrows, currency signs, and emoji, and it excludes letters, digits, whitespace, and combining marks.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Whether c is Unicode whitespace in the sense of CommonMark: a character of the Zs general category, or a tab, line feed, form feed, or carriage return. The Zs category has seventeen characters in Unicode 18.0.0.

    Equations
    Instances For