[GRASS-dev] How to reformat markdown to pass pre-commit?

Vaclav Petras wenzeslaus at gmail.com
Wed Sep 13 20:42:29 PDT 2023


On Wed, 13 Sept 2023 at 15:13, Markus Neteler <neteler at osgeo.org> wrote:

> Hi,
>
> I have updated doc/infrastructure.md in my local Git copy and fail to
> commit it in a new PR due to pre-commit linting checks:
>
>
> markdownlint.............................................................Failed
> ...
>
> I tried to use `mdformat` on the file but the result isn't compatible
> with markdownlint.
>
> Is there any other tool to auto-format the file (even a 90% solution is
> fine)?
>

I used these two in the past with GRASS GIS:

npx markdownlint-cli --fix  doc/infrastructure.md
npx prettier --print-width 80 -w  doc/infrastructure.md

I don't remember exactly, but I guess at least one worked okay.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20230913/b8e9e1c1/attachment.htm>


More information about the grass-dev mailing list