Skip to content

Commit 9bb79b3

Browse files
authored
Merge pull request #500 from SublimeText-Markdown/2.2.7
init 2.2.7
2 parents 99d0dd3 + a91276f commit 9bb79b3

9 files changed

+259
-177
lines changed

Default (Linux).sublime-keymap

+9
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,15 @@
390390
{ "key": "selector", "operator": "not_equal", "operand": "markup.raw", "match_all": true }
391391
]
392392
},
393+
// Surround with <> on URLs, regex copied from https://mathiasbynens.be/demo/url-regex, @diegoperini (502 chars)
394+
{ "keys": ["<"], "command": "insert_snippet", "args": {"contents": "<${0:$SELECTION}>"}, "context":
395+
[
396+
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
397+
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
398+
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
399+
{ "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 }
400+
]
401+
},
393402

394403
// inline image insertion
395404
{ "keys": ["super+shift+k"], "command": "reference_new_inline_image", "context":

Default (OSX).sublime-keymap

+9
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,15 @@
390390
{ "key": "selector", "operator": "not_equal", "operand": "markup.raw", "match_all": true }
391391
]
392392
},
393+
// Surround with <> on URLs, regex copied from https://mathiasbynens.be/demo/url-regex, @diegoperini (502 chars)
394+
{ "keys": ["<"], "command": "insert_snippet", "args": {"contents": "<${0:$SELECTION}>"}, "context":
395+
[
396+
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
397+
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
398+
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
399+
{ "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 }
400+
]
401+
},
393402

394403
// inline image insertion
395404
{ "keys": ["super+shift+k"], "command": "reference_new_inline_image", "context":

Default (Windows).sublime-keymap

+9
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,15 @@
390390
{ "key": "selector", "operator": "not_equal", "operand": "markup.raw", "match_all": true }
391391
]
392392
},
393+
// Surround with <> on URLs, regex copied from https://mathiasbynens.be/demo/url-regex, @diegoperini (502 chars)
394+
{ "keys": ["<"], "command": "insert_snippet", "args": {"contents": "<${0:$SELECTION}>"}, "context":
395+
[
396+
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
397+
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
398+
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
399+
{ "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 }
400+
]
401+
},
393402

394403
// inline image insertion
395404
{ "keys": ["super+shift+k"], "command": "reference_new_inline_image", "context":

Markdown (Standard).sublime-settings

+4-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
// Extra arguments passed to mdl. For all options, see here:
6060
// https://github.com/markdownlint/markdownlint/blob/master/lib/mdl/cli.rb
6161
// You can also specify a config file with '-c ~/.mdlrc'
62-
"additional_arguments": [],
62+
"additional_arguments": []
6363
},
6464
// disabled rules, e.g. "md001".
6565
"disable": ["md013"],
@@ -103,6 +103,9 @@
103103

104104
"mde.wikilinks.markdown_extension": ".md",
105105
"mde.wikilinks.homepage": "HomePage",
106+
"mde.wikilinks.templates": {
107+
"default_page": "templates/PageTemplate.md"
108+
},
106109

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

Markdown.sublime-settings

+4-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
// Extra arguments passed to mdl. For all options, see here:
7171
// https://github.com/markdownlint/markdownlint/blob/master/lib/mdl/cli.rb
7272
// You can also specify a config file with '-c ~/.mdlrc'
73-
"additional_arguments": [],
73+
"additional_arguments": []
7474
},
7575
// disabled rules, e.g. "md001".
7676
"disable": ["md013"],
@@ -115,6 +115,9 @@
115115

116116
"mde.wikilinks.markdown_extension": ".md",
117117
"mde.wikilinks.homepage": "HomePage",
118+
"mde.wikilinks.templates": {
119+
"default_page": "templates/PageTemplate.md"
120+
},
118121

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

0 commit comments

Comments
 (0)