Module
marksy/syntax
src/marksy/syntax.pookaExtra punctuation should arrive by invitation. Ordinary parsing follows CommonMark; applications may opt into the three supported GFM extensions together or choose them independently.
let selected = syntax.Options(True, False, True)
API reference
class Options(tables: Bool, task_lists: Bool, strikethrough: Bool)
tables: Bool
INFERRED
Booltask_lists: Bool
INFERRED
Boolstrikethrough: Bool
INFERRED
Bool
INFERRED
fn(Bool, Bool, Bool) -> marksy/syntax.Optionscommonmark() -> Options
INFERRED
fn() -> marksy/syntax.OptionsKeep GitHub-specific syntax as ordinary CommonMark text.
assert syntax.commonmark().tables == False
gfm() -> Options
INFERRED
fn() -> marksy/syntax.OptionsTables, task list items, and one/two-tilde strikethrough. This does not claim the separate GFM bare-autolink or disallowed-HTML extensions.
assert syntax.gfm().tables == True