Skip to content
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

Make this work when using the language-markdown. #59

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Make this work when using the language-markdown. #59

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Sep 26, 2016

support language-markdown where the scopeName is 'text.md'.

support language-markdown where the scopeName is 'text.md'.
@@ -34,7 +34,7 @@ class TidyMarkdown

run: ->
editor = atom.workspace.getActiveTextEditor()
if editor.getGrammar().scopeName isnt 'source.gfm' then return
if editor.getGrammar().scopeName isnt 'source.gfm' and editor.getGrammar().scopeName isnt 'text.md' then return
Copy link
Owner

Choose a reason for hiding this comment

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

editor.getGrammar().scopeName not in ['source.gfm', 'text.md'] would make this faster. Also there is some trailing whitespace. If you're using atom, then this should have been removed automatically.

Copy link
Author

Choose a reason for hiding this comment

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

Yes, I was editing on GH directly.
Updated, thx.

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.

None yet

1 participant