Skip to content

Do not output unneeded escapes #5

Closed
@wooorm

Description

@wooorm

Subject of the feature

Escaping happens on characters, including what comes right before and after them. One example is if ![a](b) was found in a text node, which has to be made safe so it doesn’t turn into something else.

Problem

The bang before the left bracket, the left bracket, and the left paren, are all escaped. In the first case because it precedes a bracket, in the last case because it follows a bracket, and in the opening bracket’s case, because well, they cause lots of stuff to happen.

Expected behavior

All three is superfluous. The square bracket and paren seem wise?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions