Replies: 2 comments
-
You might find that Vale only performs its checks after it's converted the content to HTML anyway, so it shouldn't matter if you use markdown or XML or whatever. Have you tested your rule on Markdown? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@daobrien , thanks for the reply! I had already tried it anyway, and it unfortunately triggers:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello folks! This is a continuation of #909 - I eventually landed on this setup for detecting the existence of exactly one header:
However, this rule is specific to HTML, and in my environment, Markdown is also used. Is there a way with Vale to scan the entire document and ensure that one (and only one) occurrence of a heading is present? Without writing two separate rules for this (one for HTML, one for markdown)? I've been reading over the docs and trying to find some way to accomplish this, but nothing is presenting itself. The
occurrence
extension is far too specific, and theexistence
extension doesn't support min/max.Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions