Skip to content

Commit b10b148

Browse files
authored
Merge pull request #191 from shuber2/asciidoc
2 parents ba35daa + 3bfe9a9 commit b10b148

File tree

1 file changed

+29
-8
lines changed

1 file changed

+29
-8
lines changed

neosnippets/asciidoc.snip

+29-8
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ options head
1616

1717
snippet source
1818
alias block-source
19-
abbr Add a source code block
19+
abbr source code block --- source ---
2020
options head
2121
[source,${1:language}]
2222
----
@@ -25,7 +25,7 @@ options head
2525

2626
snippet quote
2727
alias block-quote
28-
abbr Add a quote block
28+
abbr quote block --- text ---
2929
options head
3030
[quote, ${1:Name}, ${2:Occasion}}]
3131
____
@@ -34,6 +34,7 @@ options head
3434

3535
snippet literalblock
3636
alias block-literal
37+
abbr literal block ... text ...
3738
options head
3839
....
3940
${0}
@@ -65,13 +66,24 @@ options word
6566
+${1}+${0}
6667

6768
snippet heading
68-
abbr == heading
69+
alias section
70+
abbr == heading on level 2
6971
options head
70-
[#${1:Id}]
71-
==${2} ${3:Title}
72+
== ${1:Title}
73+
74+
${0}
75+
76+
snippet heading-anchor
77+
alias section-anchor
78+
abbr == heading on level 2 with anchor
79+
options head
80+
[#${2:Id}]
81+
== ${1:Title}
82+
83+
${0}
7284

7385
snippet inc
74-
abbr include::
86+
abbr include::example.doc
7587
options head
7688
include::${1:example.doc}[]${0}
7789

@@ -129,31 +141,40 @@ options word
129141
mailto:${1:alice@example.com}[${2:Alice}]${0}
130142

131143
snippet anchor
144+
abbr [[id]] text
132145
options word
133146
[[${1:id}]]${0}
134147

148+
snippet block-anchor
149+
alias anchorblock
150+
abbr [#anchor] #text#, itemize, ...
151+
options head
152+
[#${1:Id}] ${0}
153+
135154
snippet ref
136155
abbr reference to anchor
137156
options word
138157
<<${1:id}>>${0}
139158

140159
snippet image
160+
abbr image::file[desc]
141161
options head
142162
image::${1:example.jpg}[${2:Description}]
143163
${0}
144164

145165
snippet imagecenter
146-
abbr Centered image
166+
abbr Centered image::file[desc]
147167
options head
148168
image::${1:example.jpg}[${2:Description},align="center"]
149169
${0}
150170

151171
snippet imageinline
152-
abbr Inline image
172+
abbr Inline image:file[desc]
153173
options word
154174
image:${1:example.jpg}[${2:Description}]${0}
155175

156176
snippet footnote
177+
abbr footnote
157178
options word
158179
.footnote:[${1:footnotetext}]${0}
159180

0 commit comments

Comments
 (0)