Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Move special Markdown line break whitespace handling to configuration #82

Merged
merged 3 commits into from
Jul 30, 2015

Conversation

lee-dohm
Copy link
Contributor

Fixes #68, #80

Moving it to a configuration setting allows it to be turned off.

@@ -8,6 +8,9 @@ module.exports =
scopes:
'.source.jade':
default: false
ignoreMarkdownLineBreak:
type: 'boolean'
Copy link
Contributor

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?

Copy link
Contributor Author

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: '''
Copy link
Contributor

Choose a reason for hiding this comment

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

What a nice description 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks!

@mnquintana
Copy link
Contributor

👍 🚢

lee-dohm added a commit that referenced this pull request Jul 30, 2015
Move special Markdown line break whitespace handling to configuration
@lee-dohm lee-dohm merged commit af9edc6 into master Jul 30, 2015
@lee-dohm
Copy link
Contributor Author

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants