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

GitHub action to normalize MyST content #440

Closed
kdeldycke opened this issue Oct 13, 2021 · 2 comments
Closed

GitHub action to normalize MyST content #440

kdeldycke opened this issue Oct 13, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@kdeldycke
Copy link

kdeldycke commented Oct 13, 2021

Description / Summary

I'm looking for a way to normalize a large batch of MyST content.

Value / benefit

The idea is to integrate that normalization as a GitHub action, so I'll have an automated linting stage that will reduce the maintenance burden on my documentation.

Implementation details

So far, I came up with this pandoc CLI:

$ find ./ -iname "*.md" -exec pandoc "{}" --output="{}" --from-gfm --to=gfm --standalone --columns=79 --tab-stop=2\;

It is already integrated in my workflow there: https://github.com/kdeldycke/meta-package-manager/blob/78dd5effd7776607adf08a086d1f387b8f989e00/.github/workflows/autofix.yaml#L52-L58

It works great but still has a bunch of edge-cases (see below).

Tasks to complete

I'll be happy to contribute my experiments to the MyST-Parser documentation. Is that project the best place to contribute this?

Still, there are a couple edge-cases on pandoc side to be addresses:

@kdeldycke kdeldycke added the enhancement New feature or request label Oct 13, 2021
@chrisjsewell
Copy link
Member

Heya yep no need for pandoc: https://github.com/executablebooks/mdformat

@kdeldycke
Copy link
Author

Heya yep no need for pandoc: https://github.com/executablebooks/mdformat

Oh 😮. Perfect. Exactly what I need! 😁 Sorry for the noise! 😅 Let's close this issue then.

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

No branches or pull requests

2 participants