Skip to content

race in verbatim extension #199

@saraedum

Description

@saraedum

The verbatim extension registers the character \ as a special inline character with cmark-gfm so that we can detect the string \verbatim in a comment.

However, this breaks cmark-gfm as \ is added to the (global) SPECIAL_CHARS table when inlines are processed. When the processing is complete, it is removed from that table again. This seems wrong in several ways:

Btw., the way parsing works in cmark-gfm means that \verbatim cannot work whenever parse_inline() is called, e.g., at the beginning of a block since extensions are only checked after all the standard control characters have been handled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugupstreamThe issue is caused by a dependency. It's been reported upstream and we are waiting for a release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions