Skip to content

feature: Omit/obey escape character rules (backslash) when rendering markdown #331

@JakePi3

Description

@JakePi3

Is your feature request related to a problem? Please describe.

I had a markdown file where I was documenting some neovim keybinds. When I use text like "<leader>ab", without the embedded backslashes, the leader is interpreted as an HTML tag. According to markdown syntax, angle brackets can be escaped with backslash.

Instead, the backslashes are visible in the markdown render even when the cursor is not at the given line.

Describe the solution you'd like

Omit (but respect) the backslash character from the render. Basically see how github renders the Preview of my problem description and replicate.

Source: https://www.markdownguide.org/basic-syntax/#escaping-characters

TLDR: Obey escaping rules. Render \< as <

Describe alternatives you've considered

This is not a big deal, doesn't impact functionality. I did search through existing issues but didn't find anything related to escape character.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions