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

Filename not getting passed to markdownlint #681

Open
tvanyo opened this issue Jan 30, 2022 · 1 comment
Open

Filename not getting passed to markdownlint #681

tvanyo opened this issue Jan 30, 2022 · 1 comment

Comments

@tvanyo
Copy link

tvanyo commented Jan 30, 2022

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
Copy link
Member

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 0b4a6f5 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants