Skip to content

Make highlighting of markdownError optional #79

Description

@blueyed

I would like to disable highlighting of markdownError.

syn match markdownError "\w@<=_\w@="

Do you think an optional setting like markdown_no_error makes sense?
(or markdown_no_underscore_error in case this should be more specific)

My case at hand is including Markdown syntax for Lua comments. But also in other situations I've found that "foo_bar" would not trigger emphasizing after _.

I've only skimmed http://spec.commonmark.org/0.21/#emphasis-and-strong-emphasis (and know that there are other implementations), but it appears that most would handle foo_bar as just "foo_bar" and not foo<em>bar.

Therefore I think the default should maybe even be to not display this type of error - but others might be added in the future?!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions