Back to API Reference
Class
BackslashEscapeRule
sealed
Escapes a single ASCII punctuation character preceded by \. Example: \* becomes a literal * and is protected from any other parse rule.
Remarks
Standalone rule — register via
AddRule without a modifier. The escapable set follows CommonMark §2.4 — all ASCII punctuation: !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ Only isolated occurrences are protected. A paired inline matcher (e.g. **bold**) that started scanning before an inner \* will not respect the escape — that case requires matchers themselves to skip escaped characters when seeking their closing marker.