You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a rule to ensure all the list items have ending punctuation at the end. Vale is able to run this rule but the output has some discrepancies.
Rule
extends: existence
message: "Must put the ending punctuation at the end of a list item."
link: ''
nonword: true
level: error
scope: list
tokens:
- '[^.!?]\s*$'
Input .md file
# Complex Markdown Document for Testing
This document includes a variety of Markdown elements to test edge cases in Vale rules, especially for list punctuation.
## Unordered Lists with Different Bullets
- Item with punctuation.
+ Item without punctuation
* Another item with punctuation.
## Nested Lists
- Parent item:
- Nested item with punctuation.
- Nested without punctuation
- Double nested item with punctuation.
- Double nested without punctuation.
## Ordered Lists Mixed with Unordered
1. First ordered item with punctuation.
2. Second ordered item without punctuation
- Nested unordered with punctuation.
+ Nested unordered without punctuation
## Inline Formatting within Lists
- **Bold item with punctuation**
- _Italic item without punctuation_
- `Code item with punctuation`
## Links and Images in Lists
- [Link with punctuation](http://example.com).
- ![Image without punctuation](http://example.com/image.jpg)
## Lists with Blockquotes
- > Blockquote with punctuation.
- > Blockquote without punctuation
## Lists with Code Blocks
- Code block with punctuation:
```
Code snippet with punctuation.
```
- Code block without punctuation
```
Code snippet without punctuation
```
## Mixed Content Lists
- Mixed content with **bold**, _italic_, `code`, [link](http://example.com), and punctuation.
- Mixed content without ending punctuation includes **bold**, _italic_, `code`, and [link](http://example.com)
Remember, this text is designed to test the edge cases of your Vale rule for list punctuation. It includes various types of lists, nested lists, and list items with different types of content and formatting.
Output
Issues
In output, if we see the first error which is 8:18, the column number is incorrect. It is picking the first n character instead of last.
If we the second error which is 9:1, this is false positive. It should not through the error on this line because it already has ending punctuation.
The text was updated successfully, but these errors were encountered:
Check for existing issues
Environment
macOS
Direct Download
2.29.7
Describe the bug / provide steps to reproduce it
I have created a rule to ensure all the list items have ending punctuation at the end. Vale is able to run this rule but the output has some discrepancies.
Rule
Input .md file
Output
Issues
8:18
, the column number is incorrect. It is picking the firstn
character instead of last.9:1
, this is false positive. It should not through the error on this line because it already has ending punctuation.The text was updated successfully, but these errors were encountered: