fannheyward / coc-markdownlint

markdownlint extension for coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[question] How can add markdown-it-plugin?

Freed-Wu opened this issue · comments

commented

Because DavidAnson/markdownlint#434, I want to add
https://www.npmjs.com/package/markdown-it-texmath.

According to https://github.com/DavidAnson/markdownlint#optionsmarkdownitplugins,
I should modify options.markdownItPlugins.
https://github.com/fannheyward/coc-markdownlint#rules only display
markdownlint.config section in coc-settings.json is same with options.config.
So I guess options.markdownItPlugins should be same with markdownlint.markdownItPlugins in coc-settings.json.

However, both

  "markdownlint": {
    "markdownItPlugins": [
      require("markdown-it-plugin"),
      "markdown-it-texmath"
    ]
  },

and

  "markdownlint": {
    "markdownItPlugins": [
      "markdown-it-texmath"
    ]
  },

cannot work. What is the correct method to add a plugin?

Thanks!

No such support by now, will add it later.