Skip to content

MD040: Add disallowed_languages  #1012

Open
@dsanders11

Description

@dsanders11

Currently MD040 lets you set allowed_languages, but that's not a good fit if you only want to disallow a couple of specific languages. Adding a disallowed_languages parameter could handle that case. Should probably only allow one of those parameters or the other, but not both, since they're contradictory.

Bonus points if disallowed_languages could be a string[] or a mapping of languages to their preferred alternative, e.g.:

"fenced-code-language": {
  "disallowed_languages": {
    "js": "javascript"
  }
}

would produce an error telling the user to use javascript instead of js as the language identifier.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions