Replies: 4 comments 2 replies
-
Yes, makes sense. We should probably also update the coding guidelines. The docs still use HTML though. |
Beta Was this translation helpful? Give feedback.
-
Yes, I noticed the Typography section in the docs also still mentions using HTML. As I already implemented the change and was removing all HTML from my markdown files found by lint, I noticed it generates errors for |
Beta Was this translation helpful? Give feedback.
-
yes, you’re right! not sure if we center and horizontally stack it though. |
Beta Was this translation helpful? Give feedback.
-
It stacks horizontally. Also when each badge is placed on a new line. It also doesn't work when using a table with a single centered column, because in markdown a table is as wide as the elements in it. So it would look centered on a phone, but not on a desktop. On top of that there is also an extra horizontal line, because of the table header, which is either below or above the badges (depending on where the badges are placed in the table). I don't think there is another option in GFM to center something, so if that is required, using HTML is the only option. I have modified my |
Beta Was this translation helpful? Give feedback.
-
Now that unsafe HTML is disabled, would it be an idea to modify
markdownlint-cli2.jsonc
to enable MD033 (which checks for inline HTML). If people do not want it they can add<!-- markdownlint-disable MD033 -->
in the markdown file or modify themarkdownlint-cli2.jsonc
file themselves.Might need some documentation as well probably.
Beta Was this translation helpful? Give feedback.
All reactions