Skip to content

How to Ignore All Code Formatted Text in Asciidoc? #664

Answered by jdkato
p0fi asked this question in Q&A
Discussion options

You must be logged in to vote

Vale will ignore listing blocks and inline literals by default.

If you specify scope: raw, though, you get the "raw" unprocessed file contents, so no scope-related features will work. In this case, your rule should work as intended if you remove scope: raw:

extends: existence
message: "Use uppercase letters for hexadecimal numbers"
level: error
raw: '\b0x[0-9a-f]*[a-f][0-9a-f]*\b'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by p0fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants