diff --git a/.vale/styles/AsciiDoc/UnsetAttributes.yml b/.vale/styles/AsciiDoc/UnsetAttributes.yml index 537a3cb8..adf8001b 100644 --- a/.vale/styles/AsciiDoc/UnsetAttributes.yml +++ b/.vale/styles/AsciiDoc/UnsetAttributes.yml @@ -16,7 +16,7 @@ script: | scope = text.re_replace("(?s) *(\n////.*?////\n)", scope, "") attr_regex := "^:[\\w-_]+:.*$" - context_mod_docs_regex := "^:context|_mod-docs-content-type:.*$" + context_mod_docs_regex := "^:context|_content-type|_mod-docs-content-type:.*$" attr_name_regex := ":[\\w-_]+:" attr_name := "" unset_attr_pref := "" diff --git a/tengo-rule-scripts/UnsetAttributes.tengo b/tengo-rule-scripts/UnsetAttributes.tengo index e40e5dbb..0551ca38 100644 --- a/tengo-rule-scripts/UnsetAttributes.tengo +++ b/tengo-rule-scripts/UnsetAttributes.tengo @@ -19,7 +19,7 @@ scope += "\n" scope = text.re_replace("(?s) *(\n////.*?////\n)", scope, "") attr_regex := "^:[\\w-_]+:.*$" -context_mod_docs_regex := "^:context|_mod-docs-content-type:.*$" +context_mod_docs_regex := "^:context|_content-type|_mod-docs-content-type:.*$" attr_name_regex := ":[\\w-_]+:" attr_name := "" unset_attr_pref := ""