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

Add pre-commit check to ensure HTML fragments with MD uses proper attributes #691

Open
aarnq opened this issue Oct 4, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@aarnq
Copy link
Contributor

aarnq commented Oct 4, 2023

The problem

With the markdown in HTML plugin it is required to set attributes on nested HTML elements else they will not be rendered, which is an easy thing to forget, and therefore we should add a pre-commit check to find these early as possible.

The solution

Add a pre-commit check to look at HTML fragments and check that all nested element contain the required attribute.
See here for specification.

Definition of done

Check implemented with pre-commit that can catch forgotten markdown attributes.

@aarnq aarnq added the enhancement New feature or request label Oct 4, 2023
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

1 participant