Skip to content

Commit

Permalink
Merge pull request #609 from aireilly/fix-hard-wrap-rule
Browse files Browse the repository at this point in the history
Code markup should not trip the hard wrapped line rule
  • Loading branch information
aireilly authored Aug 16, 2023
2 parents 1389688 + 2e9252c commit 2060c15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,5 @@ image::product-workflow-overview.png[High-level {product-title} flow]
include::modules/a-rather-very-very-long-very-log-very-long-indeed-so-long-file.adoc[]

Hard drive:: Permanent storage for operating system and/or user files that are used on a daily basis

`GET api/ocloudNotifications/v1/cluster/node/<node_name>/sync/ptp-status/lock-state/CurrentState`
2 changes: 1 addition & 1 deletion .vale/styles/OpenShiftAsciiDoc/HardWrappedLines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ script: |
list_regex := "^(\\.|\\*|-).*$"
hard_wrap_80_regex := "^.{65,80}$"
hard_wrap_100_regex := "^.{75,100}$"
asciidoc_markup := "^(.*\\[.*\\]|\\/\\/.*|=+.*|<(\\.|\\d+)>.*|>|#+.*|\\..+|\\|.*|:.+|.*::|ifdef::|endif::|image::|include::|link::|video::).*$"
asciidoc_markup := "^(.*\\[.*\\]|\\/\\/.*|=+.*|<(\\.|\\d+)>.*|>|#+.*|\\..+|\\|.*|:.+|.*::|`.*`|ifdef::|endif::|image::|include::|link::|video::).*$"
listingblock_delim_regex := "^-{4}$"
inside_listingblock := false
Expand Down
2 changes: 1 addition & 1 deletion tengo-rule-scripts/HardWrappedLines.tengo
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sentence_regex := "^.*(\\.|\\?|\\!|:)$"
list_regex := "^(\\.|\\*|-).*$"
hard_wrap_80_regex := "^.{65,80}$"
hard_wrap_100_regex := "^.{75,100}$"
asciidoc_markup := "^(.*\\[.*\\]|\\/\\/.*|=+.*|<(\\.|\\d+)>.*|>|#+.*|\\..+|\\|.*|:.+|.*::|ifdef::|endif::|image::|include::|link::|video::).*$"
asciidoc_markup := "^(.*\\[.*\\]|\\/\\/.*|=+.*|<(\\.|\\d+)>.*|>|#+.*|\\..+|\\|.*|:.+|.*::|`.*`|ifdef::|endif::|image::|include::|link::|video::).*$"
listingblock_delim_regex := "^-{4}$"
inside_listingblock := false

Expand Down

0 comments on commit 2060c15

Please sign in to comment.