Markdown: Disable HTML tag auto-close

Hi,

I’m trying to disable HTML tag completion in CodeMirror 6 with the markdown extension.

For example, with the following editor, typing <div> inserts <div></div>.

let view = new EditorView({
  doc: "Example:",
  extensions: [
    markdown({
      autocompleteMarkup: false,
      completeHTMLTags: false,
    }),
  ],
  parent: document.body
})

[codemirror.net/try link]

This, however, still auto-closes certain HTML tags after typing >: Typing <div> inserts <div></div>.

Is it possible to disable this behavior?

Thank you for your time!

This was coming from the HTML language (the option only controls HTML completion inside Markdown context, when you haven’t completed a full tag yet). This patch adds a feature that allows you to configure the nested HTML language used for tags.