8000
Skip to content
This repository was archived by the owner on Aug 12, 2023. It is now read-only.
Discussion options

So currently I am using markdownlint for formatting and diagnostics. But it becomes very painful to see a lot of linting error for inline html.
I am not sure why this is the case though. Since markdownlint supports inline html https://github.com/DavidAnson/markdownlint/blob/main/doc/md033.md.
Btw I checked the Builtins and didn't understood what this markdownlint-cli is doing in the meta ---> url (I would like to know why we are using it).

local h = require("null-ls.helpers")
local methods = require("null-ls.methods")

local FORMATTING = methods.internal.FORMATTING

return h.make_builtin({
    name = "markdownlint",
    meta = {
        url = "https://github.com/igorshubovych/markdownlint-cli",
        description = "A Node.js style checker and lint tool for Markdown/CommonMark files.",
        notes = {
            "Can fix some (but not all!) markdownlint issues. If possible, use [Prettier](https://github.com/prettier/prettier), which can also fix Markdown files.",
        },
    },
    method = FORMATTING,
    filetypes = { "markdown" },
    generator_opts = {
        command = "markdownlint",
        args = { "--fix", "$FILENAME" },
        to_temp_file = true,
    },
    factory = h.formatter_factory,
})

Another question is do we have to define our own rules like shown here --> https://github.com/DavidAnson/markdownlint/blob/main/schema/markdownlint-config-schema.json and update the defaults for MD033 rule (inline html).

PS: Sorry I am very noob at lua, neovim and all this configuration stuff. Trying to understand this stuff.

You must be logged in to vote

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jose-elias-alvarez
Comment options

@SetsuikiHyoryu
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
0