SublimeText-Markdown / MarkdownEditing

Powerful Markdown package for Sublime Text with better syntax understanding and good color schemes.
MIT License
3.18k stars 647 forks source link

Filename not getting passed to markdownlint #681

Open tvanyo opened 2 years ago

tvanyo commented 2 years ago

I've installed the MarkdownEditing package for Sublime Text (v4) and am trying to get the command MarkdownEditing: Run markdownlint to run. The error I'm getting suggests the command is not getting the filename.

I've installed markdownlint-cli with brew on macOS and linked mdl to markdownlint appropriately. Confirmed it is working as expected in the terminal.

For grins I've created a build system in Sublime that works:

{
    "shell_cmd": "mdl $file"
}

Is there some obvious pilot error here?

Sublime Text Build: 4126 Markdown Editing: v3.1.1 markdownlint-cli: v0.30.0 macOS: 10.15.7

deathaxe commented 2 years ago

MarkdownEditing: Run markdownlint passes the content to the invoked markdownlint executable. There's no option to specify a file name.

This command was added by 0b4a6f5f532765a218fee495231b70185427faee this way. Not sure whether it used to work at any point, but current markdownlint v0.30.0 doesn't seem to accept the content.

The result of the builtin command wouldn't be different from your build system script though. It just prints the output to a panel.