fannheyward / coc-markdownlint

markdownlint extension for coc.nvim
MIT License
170 stars 2 forks source link

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

Open Freed-Wu opened 3 years ago

Freed-Wu commented 3 years ago

Because https://github.com/DavidAnson/markdownlint/issues/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!

fannheyward commented 3 years ago

No such support by now, will add it later.