Skip to content

feat: various rule enhancements and adjustments#174

Open
SecondSkoll wants to merge 8 commits intomainfrom
rule-level-adjustment
Open

feat: various rule enhancements and adjustments#174
SecondSkoll wants to merge 8 commits intomainfrom
rule-level-adjustment

Conversation

@SecondSkoll
Copy link
Contributor

Addresses #153 #152 #151 #150 #148 and #146

Comment on lines 13 to 15
- '.'
- '[.!?,]'
tokens:
- '[a-z0-9][.](?:\s|$)' No newline at end of file
- '[.!?,](?:\s|$)'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes a suggestion for the heading # A, B, C - which we presumably don't want to happen.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a suggestion level rule, and it was Daniele's decision to apply it to most common grammar. So this is implemented as directed.

Comment on lines -12 to +11
- '[a-z][.?!] {2,}[A-Z]'
- '[.?!] {2,}$'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would we ever want even a single space at the end of a line (regardless of what comes before the space)? It's common practice for tools such as pre-commit hooks to flag trailing whitespace, so maybe we should adopt the same rule?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's probably a separate discussion to the core of this issue - which is just that double spaces at the end of a line in MD renders a linebreak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants