-
-
Notifications
You must be signed in to change notification settings - Fork 738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
style: sentence per line #66
Comments
Seems like this might fit in with #51 as a typography rule. |
Is there a way to achieve this with markdownlint today? This issue is a bit dated. |
I think that’s what this custom rule does: https://github.com/JoshuaKGoldberg/sentences-per-line |
There's also https://sembr.org/ these days, which formalizes what i'm asking for…! |
I see this issue from 2017 is still open (😀), so I would like to ask a question. To provide more details, this is the last config of the
The pre-commit option I have tried:
But no luck. |
It looks like you mean to use |
@Alexander-Serov ... and documentation here: https://github.com/DavidAnson/markdownlint-cli2#markdownlint-cli2jsonc |
Although there is already https://github.com/JoshuaKGoldberg/sentences-per-line will there be a chance that this will get integrated into markdown-lint directly (mainly because we're using just the docker image from markdownlint-cli, and it is hard to integrate it without building an own docker-image)? If yes, and if I have the okay from @JoshuaKGoldberg may I start integrating it into markdown-lint as an optional rule? I do see this requirement more and more often, and I think it would allow a lot of people to use that rule easier more. I would also make the rule a little bit more configurable, eg. |
Yes, please do! I'd love to not have to maintain |
FYI, there are no optional rules built into the library. That may be a policy I have to change someday, but so far everything in the library is on by default. There is a slight caveat here for a couple of rules that are enabled but do nothing in their default configuration. That would be the easiest path here, although I feel kind of like the spirit of this rule belongs as part of the "line length" rule since the two seem mutually exclusive. Unfortunately, I don't think they integrate cleanly from a configuration point of view. |
New configurable and fixable rule to fix ensure only one sentence per line. It is configurable, what defines the ending of a sentence as well as ignored words. Additionally to the new rule, i adapted the logic to create the yaml file, as it did not work properly with arrays. Signed-off-by: Simon Schrottner <[email protected]>
New configurable and fixable rule to fix ensure only one sentence per line. It is configurable, what defines the ending of a sentence as well as ignored words. Additionally to the new rule, i adapted the logic to create the yaml file, as it did not work properly with arrays. Signed-off-by: Simon Schrottner <[email protected]>
New configurable and fixable rule to fix ensure only one sentence per line. It is configurable, what defines the ending of a sentence as well as ignored words. Additionally to the new rule, i adapted the logic to create the yaml file, as it did not work properly with arrays. Signed-off-by: Simon Schrottner <[email protected]>
I created a draft pull request (#719 )- where I just played around yesterday and covered many topics. I even added a naive "optional" proposal. I marked the PR as a draft because I don't have much experience with JavaScript/Typescript, and some changes might be controversial (the text for the documentation needs improvement). But I am curious to hear what you think about it. what I should not do, or do instead :) |
New configurable and fixable rule to fix ensure only one sentence per line. It is configurable, what defines the ending of a sentence as well as ignored words. Additionally to the new rule, i adapted the logic to create the yaml file, as it did not work properly with arrays. Signed-off-by: Simon Schrottner <[email protected]>
A lot of VCS backed writing guidelines state: One sentence per line.
A proper editor configuration can make any line-length easy enough on the eyes. But for being able to read a VCS history to a prose text, this style makes most sense.
Is there any way this could be supported?
The text was updated successfully, but these errors were encountered: