This repository has been archived by the owner on May 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from facelessuser/master
Bug Fixes and Usability Changes
- Loading branch information
Showing
6 changed files
with
113 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,29 @@ | ||
[ | ||
{ | ||
"caption": "Markdown Preview: Python Markdown: Preview in Browser", | ||
"command": "markdown_preview", | ||
"caption": "Markdown Preview: Preview in Browser", | ||
"command": "markdown_preview_select", | ||
"args": { | ||
"target": "browser", | ||
"parser": "markdown" | ||
"target": "browser" | ||
} | ||
}, | ||
{ | ||
"caption": "Markdown Preview: Python Markdown: Export HTML in Sublime Text", | ||
"command": "markdown_preview", | ||
"caption": "Markdown Preview: Export HTML in Sublime Text", | ||
"command": "markdown_preview_select", | ||
"args": { | ||
"target": "sublime", | ||
"parser": "markdown" | ||
"target": "sublime" | ||
} | ||
}, | ||
{ | ||
"caption": "Markdown Preview: Python Markdown: Copy to Clipboard", | ||
"command": "markdown_preview", | ||
"caption": "Markdown Preview: Copy to Clipboard", | ||
"command": "markdown_preview_select", | ||
"args": { | ||
"target": "clipboard", | ||
"parser": "markdown" | ||
"target": "clipboard" | ||
} | ||
}, | ||
|
||
|
||
{ | ||
"caption": "Markdown Preview: Github Flavored Markdown: Preview in Browser", | ||
"command": "markdown_preview", | ||
"args": { | ||
"target": "browser", | ||
"parser": "github" | ||
} | ||
}, | ||
{ | ||
"caption": "Markdown Preview: Github Flavored Markdown: Export HTML in Sublime Text", | ||
"command": "markdown_preview", | ||
"args": { | ||
"target": "sublime", | ||
"parser": "github" | ||
} | ||
}, | ||
{ | ||
"caption": "Markdown Preview: Github Flavored Markdown: Copy to Clipboard", | ||
"command": "markdown_preview", | ||
"args": { | ||
"target": "clipboard", | ||
"parser": "github" | ||
} | ||
}, | ||
{ | ||
"caption": "Markdown Preview: Open Markdown Cheat sheet", | ||
"command": "markdown_cheatsheet", | ||
"args": {} | ||
} | ||
|
||
|
||
|
||
|
||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from __future__ import unicode_literals | ||
from ..extensions import Extension | ||
|
||
extensions = [ | ||
'delete', | ||
'githubemoji', | ||
'magiclink', | ||
'tasklist', | ||
'headeranchor', | ||
'nl2br' | ||
] | ||
|
||
|
||
class GithubExtension(Extension): | ||
"""Add various extensions to Markdown class""" | ||
|
||
def extendMarkdown(self, md, md_globals): | ||
"""Register extension instances""" | ||
md.registerExtensions(extensions, self.config) | ||
|
||
|
||
def makeExtension(configs={}): | ||
return GithubExtension(configs=dict(configs)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters