Skip to content

Commit

Permalink
Merge pull request #500 from SublimeText-Markdown/2.2.7
Browse files Browse the repository at this point in the history
init 2.2.7
  • Loading branch information
felixhao28 authored Jun 2, 2018
2 parents 99d0dd3 + a91276f commit 9bb79b3
Show file tree
Hide file tree
Showing 9 changed files with 259 additions and 177 deletions.
9 changes: 9 additions & 0 deletions Default (Linux).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,15 @@
{ "key": "selector", "operator": "not_equal", "operand": "markup.raw", "match_all": true }
]
},
// Surround with <> on URLs, regex copied from https://mathiasbynens.be/demo/url-regex, @diegoperini (502 chars)
{ "keys": ["<"], "command": "insert_snippet", "args": {"contents": "<${0:$SELECTION}>"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
{ "key": "text", "operator": "regex_match", "operand": "(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!10(?:\\.\\d{1,3}){3})(?!127(?:\\.\\d{1,3}){3})(?!169\\.254(?:\\.\\d{1,3}){2})(?!192\\.168(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\x{00a1}-\\x{ffff}0-9]+-?)*[a-z\\x{00a1}-\\x{ffff}0-9]+)(?:\\.(?:[a-z\\x{00a1}-\\x{ffff}0-9]+-?)*[a-z\\x{00a1}-\\x{ffff}0-9]+)*(?:\\.(?:[a-z\\x{00a1}-\\x{ffff}]{2,})))(?::\\d{2,5})?(?:/[^\\s]*)?", "match_all": true }
]
},

// inline image insertion
{ "keys": ["super+shift+k"], "command": "reference_new_inline_image", "context":
Expand Down
9 changes: 9 additions & 0 deletions Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,15 @@
{ "key": "selector", "operator": "not_equal", "operand": "markup.raw", "match_all": true }
]
},
// Surround with <> on URLs, regex copied from https://mathiasbynens.be/demo/url-regex, @diegoperini (502 chars)
{ "keys": ["<"], "command": "insert_snippet", "args": {"contents": "<${0:$SELECTION}>"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
{ "key": "text", "operator": "regex_match", "operand": "(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!10(?:\\.\\d{1,3}){3})(?!127(?:\\.\\d{1,3}){3})(?!169\\.254(?:\\.\\d{1,3}){2})(?!192\\.168(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\x{00a1}-\\x{ffff}0-9]+-?)*[a-z\\x{00a1}-\\x{ffff}0-9]+)(?:\\.(?:[a-z\\x{00a1}-\\x{ffff}0-9]+-?)*[a-z\\x{00a1}-\\x{ffff}0-9]+)*(?:\\.(?:[a-z\\x{00a1}-\\x{ffff}]{2,})))(?::\\d{2,5})?(?:/[^\\s]*)?", "match_all": true }
]
},

// inline image insertion
{ "keys": ["super+shift+k"], "command": "reference_new_inline_image", "context":
Expand Down
9 changes: 9 additions & 0 deletions Default (Windows).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,15 @@
{ "key": "selector", "operator": "not_equal", "operand": "markup.raw", "match_all": true }
]
},
// Surround with <> on URLs, regex copied from https://mathiasbynens.be/demo/url-regex, @diegoperini (502 chars)
{ "keys": ["<"], "command": "insert_snippet", "args": {"contents": "<${0:$SELECTION}>"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
{ "key": "text", "operator": "regex_match", "operand": "(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!10(?:\\.\\d{1,3}){3})(?!127(?:\\.\\d{1,3}){3})(?!169\\.254(?:\\.\\d{1,3}){2})(?!192\\.168(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\x{00a1}-\\x{ffff}0-9]+-?)*[a-z\\x{00a1}-\\x{ffff}0-9]+)(?:\\.(?:[a-z\\x{00a1}-\\x{ffff}0-9]+-?)*[a-z\\x{00a1}-\\x{ffff}0-9]+)*(?:\\.(?:[a-z\\x{00a1}-\\x{ffff}]{2,})))(?::\\d{2,5})?(?:/[^\\s]*)?", "match_all": true }
]
},

// inline image insertion
{ "keys": ["super+shift+k"], "command": "reference_new_inline_image", "context":
Expand Down
5 changes: 4 additions & 1 deletion Markdown (Standard).sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
// Extra arguments passed to mdl. For all options, see here:
// https://github.com/markdownlint/markdownlint/blob/master/lib/mdl/cli.rb
// You can also specify a config file with '-c ~/.mdlrc'
"additional_arguments": [],
"additional_arguments": []
},
// disabled rules, e.g. "md001".
"disable": ["md013"],
Expand Down Expand Up @@ -103,6 +103,9 @@

"mde.wikilinks.markdown_extension": ".md",
"mde.wikilinks.homepage": "HomePage",
"mde.wikilinks.templates": {
"default_page": "templates/PageTemplate.md"
},

// You can opt out some keybinds by setting the corresponding value from 'false' to 'true' (without single-quotes).
// Super key references to a key next to left Alt key. It usually has a Windows logo or "win" or "Command" on it.
Expand Down
5 changes: 4 additions & 1 deletion Markdown.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
// Extra arguments passed to mdl. For all options, see here:
// https://github.com/markdownlint/markdownlint/blob/master/lib/mdl/cli.rb
// You can also specify a config file with '-c ~/.mdlrc'
"additional_arguments": [],
"additional_arguments": []
},
// disabled rules, e.g. "md001".
"disable": ["md013"],
Expand Down Expand Up @@ -115,6 +115,9 @@

"mde.wikilinks.markdown_extension": ".md",
"mde.wikilinks.homepage": "HomePage",
"mde.wikilinks.templates": {
"default_page": "templates/PageTemplate.md"
},

// You can opt out some keybinds by setting the corresponding value from 'false' to 'true' (without single-quotes).
// Super key references to a key next to left Alt key. It usually has a Windows logo or "win" or "Command" on it.
Expand Down
Loading

0 comments on commit 9bb79b3

Please sign in to comment.