Skip to content

Support --stdin with --fix #497

@orhun

Description

@orhun

Hello! 👋🏼

I maintain a project called git-cliff, which is used mostly for generating changelogs in markdown format. We also support postprocessors for running certain commands after the file is generated.

My use case is to run markdownlint-cli to fix the styling issues like so:

postprocessors = [
  { pattern = '.*', replace_command = 'markdownlint --fix --stdin' },
]

However, this does not work since the flags cannot be used together. I simply need to read content from stdin and print out the "fixed" content to stdout.

Would it be plausible to support this use case?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions