forked from mrchief/AsciiDoc.SublimeText2
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathSymbol List - Heading.tmPreferences
More file actions
32 lines (32 loc) · 1.61 KB
/
Symbol List - Heading.tmPreferences
File metadata and controls
32 lines (32 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>scope</key>
<string>text.html.asciidoc markup.heading - markup.quote</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
<key>symbolTransformation</key>
<string><![CDATA[
s/\!?\[([^]]+)\]\([^)]*\)/$1/g; # strip image or link urls
s/\[([^]]+)\]\[[^]]*\]/$1/g; # strip reference urls
s/\[\^[^]]+\]//g; # strip footnotes
s/^\s*//g; # strip leading whitespace
s/\s+#+\s*\z//g; # strip trailing hashes
s/\s+/ /g; # convert (multiple) whitespace to one space
s/^[#=]{6}/ /g; # indent atx heading 6
s/^[#=]{5}/ /g; # indent atx heading 5
s/^[#=]{4}/ /g; # indent atx heading 4
s/^[#=]{3}/ /g; # indent atx heading 3
s/^[#=]{2}/ /g; # indent atx heading 2
s/^[#=]{1}//g; # indent atx heading 1
s/^(.+?)=+\s*\z/$1/g; # indent SETEXT heading 1
s/^(.+?)-+\s*\z/ $1/g; # indent SETEXT heading 2
s/^(.+?)~+\s*\z/ $1/g; # indent SETEXT heading 3
s/^(.+?)\^+\s*\z/ $1/g; # indent SETEXT heading 4
s/^(.+?)\++\s*\z/ $1/g; # indent SETEXT heading 5
]]></string>
</dict>
</dict>
</plist>