mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-06 04:14:15 +00:00
SafeText paired any run of three backticks or tildes with the next run of either kind, so a longer fence quoting markdown was closed at its first inner run and the rest of the quoted evidence reached the chat provider as prose. Fences now follow the CommonMark rules: a fence line has at most three spaces before its run, and its block ends only on a line holding a run of the same character at least as long and nothing else; an unclosed fence drops to the end. Other runs (after text, inside a blockquote or list item, in text collapsed to one line) are dropped up to the latest end a code span or a container fence could have, and a fence line met first starts its own block. Ambiguous markdown errs toward dropping.