Skip to content

Filename not getting passed to markdownlint #681

Description

@tvanyo

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

Activity

  1. deathaxe commented on Jan 31, 2022

    @deathaxe
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions