-
Notifications
You must be signed in to change notification settings - Fork 60
Move special Markdown line break whitespace handling to configuration #82
Conversation
@@ -8,6 +8,9 @@ module.exports = | |||
scopes: | |||
'.source.jade': | |||
default: false | |||
ignoreMarkdownLineBreak: | |||
type: 'boolean' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs a description or an improved name, it would take me awhile to think about whether checked or unchecked will trim trailing whitespace in markdown files since "ignoring the line break" means removing it in the context of this package.
Maybe something like:
keepTrailingTwoSpacesInMarkdownFiles
with a description like Markdown treats two spaces at the end of a line as a line break
Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the name to keepMarkdownLineBreakWhitespace
and added the following description:
Markdown uses two or more spaces at the end of a line to signify a line break. Enable this option to keep this whitespace, even if other settings would remove it.
keepMarkdownLineBreakWhitespace: | ||
type: 'boolean' | ||
default: true | ||
description: ''' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What a nice description 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
👍 🚢 |
Move special Markdown line break whitespace handling to configuration
Thanks! |
Fixes #68, #80
Moving it to a configuration setting allows it to be turned off.