Skip to content

Commit e8a37c7

Browse files
committed
get around emmet tab trigger problem
1 parent e6c0275 commit e8a37c7

File tree

3 files changed

+64
-1
lines changed

3 files changed

+64
-1
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,26 @@ The easiest way is to install it via [Package Control](https://packagecontrol.io
1818
- Extract the archive
1919
- Put it in your **Packages**( `Preferences > Browse Packages...` ) directory.
2020

21+
### Using with Emmet
22+
If you have Emmet installed, tab triggers may not function as expected due to [this](https://github.com/sergeche/emmet-sublime#tab-key-handler).
23+
24+
To get around the problem, go to
25+
```
26+
Preferences > Package Settings > Emmet > User Settings
27+
```
28+
and add the following in your settings file.
29+
30+
```
31+
{
32+
"disable_tab_abbreviations_for_scopes": "text.html.markdown"
33+
}
34+
```
35+
36+
This should let markdown snippets take precedence over emmet's tab to expand abbreviations feature and provide correct snippets.
37+
38+
Note that any tab trigger not set by this plugin will be converted to HTML tags which is convenient for people
39+
who want to use HTML tags inside Markdown files.
40+
2141
## Usage
2242
A consolidated guide is available [here](http://praveenpuglia.github.io/github_markdown_snippets).
2343

messages.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"install":"messages/install.txt",
3-
"2.0.0":"messages/2.0.0.txt"
3+
"2.0.0":"messages/2.0.0.txt",
4+
"2.1.0":"messages/2.1.0.txt"
45
}

messages/2.1.0.txt

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
✿ Version 2.1.0
2+
〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜
3+
This version comes up with instructions to solve the tab trigger issues when used with Emmet.
4+
Due to [this](https://github.com/sergeche/emmet-sublime#tab-key-handler), some tab triggers
5+
result in html elements instead of proper Markdown snippets.
6+
7+
To get around the problem, go to
8+
Preferences > Package Settings > Emmet > User Settings
9+
and add the following in your settings file.
10+
11+
```
12+
{
13+
"disable_tab_abbreviations_for_scopes": "text.html.markdown"
14+
}
15+
```
16+
17+
This should let markdown snippets take precedence over emmet's tab to expand abbreviations feature and provide correct snippets.
18+
19+
Note that any tab trigger not set by this plugin will be converted to HTML tags which is convenient for people
20+
who want to use HTML tags inside Markdown files.
21+
22+
〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜
23+
List of Tab Triggers
24+
〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜
25+
h1 // Heading 1
26+
h2 // Heading 2
27+
h3 // Heading 3
28+
h4 // Heading 4
29+
h5 // Heading 5
30+
h6 // Heading 6
31+
b // Bold
32+
i // Italic
33+
bq // Blockquote
34+
strike // Strikeout
35+
hr // Horizontal Rule, Divider
36+
code // Inline Code
37+
pre // Code Block with language based highlighting.
38+
a // Anchor
39+
img // Image
40+
ol // Ordered List
41+
ul // Unordered List
42+
table // Table

0 commit comments

Comments
 (0)