Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Freed-Wu opened this issue Sep 30, 2021 · 1 comment
Open

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

Freed-Wu opened this issue Sep 30, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Freed-Wu
Copy link

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!

@fannheyward
Copy link
Owner

No such support by now, will add it later.

@fannheyward fannheyward added the enhancement New feature or request label Oct 9, 2021
@fannheyward fannheyward self-assigned this Oct 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants