Closed mghill closed 3 years ago
Thanks for the report!
I would expect a rule to ignore things that are addresses or paths, and to ignore things in
code
.
Agree. It is a bug that split ?
in code.
Probably, We need to add handling
https://github.com/azu/sentence-splitter/blob/41b72341b3edf7ae853bcdd74146a66fe72ea41f/src/sentence-splitter.ts#L204-L210
Code
node into parsing logic.
→ Edit: Rule implementation has an issue: https://github.com/IQTLabs/textlint-rule-one-sentence-per-line/issues/3#issuecomment-739925995
This issue related to https://github.com/IQTLabs/textlint-rule-one-sentence-per-line/issues/3 I've pointed out the reason in https://github.com/IQTLabs/textlint-rule-one-sentence-per-line/issues/3#issuecomment-739925995 So, I close this issue.
Brought over from https://github.com/IQTLabs/textlint-rule-one-sentence-per-line/issues/3 :
The example I came across was in a markdown doc, where textlint-rule-one-sentence-per-line (which uses sentence-splitter) was finding issue in the following snippet:
It wanted to split on the
?
character in the example URL. Further testing of normal prose incode
also showed it was not skipped. I would expect a rule to ignore things that are addresses or paths, and to ignore things incode
.