|
| 1 | +<templateSet group="Djot"> |
| 2 | + <!-- Headings --> |
| 3 | + <template name="djh1" value="# $TEXT$ $END$" description="Heading level 1" toReformat="false" toShortenFQNames="false"> |
| 4 | + <variable name="TEXT" expression="" defaultValue=""Heading"" alwaysStopAt="true"/> |
| 5 | + <context> |
| 6 | + <option name="OTHER" value="true"/> |
| 7 | + </context> |
| 8 | + </template> |
| 9 | + |
| 10 | + <template name="djh2" value="## $TEXT$ $END$" description="Heading level 2" toReformat="false" toShortenFQNames="false"> |
| 11 | + <variable name="TEXT" expression="" defaultValue=""Heading"" alwaysStopAt="true"/> |
| 12 | + <context> |
| 13 | + <option name="OTHER" value="true"/> |
| 14 | + </context> |
| 15 | + </template> |
| 16 | + |
| 17 | + <template name="djh3" value="### $TEXT$ $END$" description="Heading level 3" toReformat="false" toShortenFQNames="false"> |
| 18 | + <variable name="TEXT" expression="" defaultValue=""Heading"" alwaysStopAt="true"/> |
| 19 | + <context> |
| 20 | + <option name="OTHER" value="true"/> |
| 21 | + </context> |
| 22 | + </template> |
| 23 | + |
| 24 | + <template name="djh4" value="#### $TEXT$ $END$" description="Heading level 4" toReformat="false" toShortenFQNames="false"> |
| 25 | + <variable name="TEXT" expression="" defaultValue=""Heading"" alwaysStopAt="true"/> |
| 26 | + <context> |
| 27 | + <option name="OTHER" value="true"/> |
| 28 | + </context> |
| 29 | + </template> |
| 30 | + |
| 31 | + <template name="djh5" value="##### $TEXT$ $END$" description="Heading level 5" toReformat="false" toShortenFQNames="false"> |
| 32 | + <variable name="TEXT" expression="" defaultValue=""Heading"" alwaysStopAt="true"/> |
| 33 | + <context> |
| 34 | + <option name="OTHER" value="true"/> |
| 35 | + </context> |
| 36 | + </template> |
| 37 | + |
| 38 | + <template name="djh6" value="###### $TEXT$ $END$" description="Heading level 6" toReformat="false" toShortenFQNames="false"> |
| 39 | + <variable name="TEXT" expression="" defaultValue=""Heading"" alwaysStopAt="true"/> |
| 40 | + <context> |
| 41 | + <option name="OTHER" value="true"/> |
| 42 | + </context> |
| 43 | + </template> |
| 44 | + |
| 45 | + <!-- Inline formatting --> |
| 46 | + <template name="djb" value="*$TEXT$*$END$" description="Bold text" toReformat="false" toShortenFQNames="false"> |
| 47 | + <variable name="TEXT" expression="selection()" defaultValue=""bold"" alwaysStopAt="true"/> |
| 48 | + <context> |
| 49 | + <option name="OTHER" value="true"/> |
| 50 | + </context> |
| 51 | + </template> |
| 52 | + |
| 53 | + <template name="dji" value="_$TEXT$_$END$" description="Italic text" toReformat="false" toShortenFQNames="false"> |
| 54 | + <variable name="TEXT" expression="selection()" defaultValue=""italic"" alwaysStopAt="true"/> |
| 55 | + <context> |
| 56 | + <option name="OTHER" value="true"/> |
| 57 | + </context> |
| 58 | + </template> |
| 59 | + |
| 60 | + <template name="djc" value="`$TEXT$`$END$" description="Inline code" toReformat="false" toShortenFQNames="false"> |
| 61 | + <variable name="TEXT" expression="selection()" defaultValue=""code"" alwaysStopAt="true"/> |
| 62 | + <context> |
| 63 | + <option name="OTHER" value="true"/> |
| 64 | + </context> |
| 65 | + </template> |
| 66 | + |
| 67 | + <template name="djhi" value="{=$TEXT$=}$END$" description="Highlighted text" toReformat="false" toShortenFQNames="false"> |
| 68 | + <variable name="TEXT" expression="selection()" defaultValue=""highlighted"" alwaysStopAt="true"/> |
| 69 | + <context> |
| 70 | + <option name="OTHER" value="true"/> |
| 71 | + </context> |
| 72 | + </template> |
| 73 | + |
| 74 | + <template name="djsup" value="{^$TEXT$^}$END$" description="Superscript" toReformat="false" toShortenFQNames="false"> |
| 75 | + <variable name="TEXT" expression="selection()" defaultValue=""superscript"" alwaysStopAt="true"/> |
| 76 | + <context> |
| 77 | + <option name="OTHER" value="true"/> |
| 78 | + </context> |
| 79 | + </template> |
| 80 | + |
| 81 | + <template name="djsub" value="{~$TEXT$~}$END$" description="Subscript" toReformat="false" toShortenFQNames="false"> |
| 82 | + <variable name="TEXT" expression="selection()" defaultValue=""subscript"" alwaysStopAt="true"/> |
| 83 | + <context> |
| 84 | + <option name="OTHER" value="true"/> |
| 85 | + </context> |
| 86 | + </template> |
| 87 | + |
| 88 | + <template name="djins" value="{+$TEXT$+}$END$" description="Inserted text" toReformat="false" toShortenFQNames="false"> |
| 89 | + <variable name="TEXT" expression="selection()" defaultValue=""inserted"" alwaysStopAt="true"/> |
| 90 | + <context> |
| 91 | + <option name="OTHER" value="true"/> |
| 92 | + </context> |
| 93 | + </template> |
| 94 | + |
| 95 | + <template name="djdel" value="{-$TEXT$-}$END$" description="Deleted text" toReformat="false" toShortenFQNames="false"> |
| 96 | + <variable name="TEXT" expression="selection()" defaultValue=""deleted"" alwaysStopAt="true"/> |
| 97 | + <context> |
| 98 | + <option name="OTHER" value="true"/> |
| 99 | + </context> |
| 100 | + </template> |
| 101 | + |
| 102 | + <!-- Links and images --> |
| 103 | + <template name="djlink" value="[$TEXT$]($URL$)$END$" description="Link" toReformat="false" toShortenFQNames="false"> |
| 104 | + <variable name="TEXT" expression="selection()" defaultValue=""link text"" alwaysStopAt="true"/> |
| 105 | + <variable name="URL" expression="" defaultValue=""https://"" alwaysStopAt="true"/> |
| 106 | + <context> |
| 107 | + <option name="OTHER" value="true"/> |
| 108 | + </context> |
| 109 | + </template> |
| 110 | + |
| 111 | + <template name="djlinkref" value="[$TEXT$][$REF$]$END$" description="Reference link" toReformat="false" toShortenFQNames="false"> |
| 112 | + <variable name="TEXT" expression="selection()" defaultValue=""link text"" alwaysStopAt="true"/> |
| 113 | + <variable name="REF" expression="" defaultValue=""ref"" alwaysStopAt="true"/> |
| 114 | + <context> |
| 115 | + <option name="OTHER" value="true"/> |
| 116 | + </context> |
| 117 | + </template> |
| 118 | + |
| 119 | + <template name="djimg" value="$END$" description="Image" toReformat="false" toShortenFQNames="false"> |
| 120 | + <variable name="ALT" expression="" defaultValue=""alt text"" alwaysStopAt="true"/> |
| 121 | + <variable name="URL" expression="" defaultValue=""image.png"" alwaysStopAt="true"/> |
| 122 | + <context> |
| 123 | + <option name="OTHER" value="true"/> |
| 124 | + </context> |
| 125 | + </template> |
| 126 | + |
| 127 | + <template name="djauto" value="<$URL$>$END$" description="Autolink" toReformat="false" toShortenFQNames="false"> |
| 128 | + <variable name="URL" expression="" defaultValue=""https://"" alwaysStopAt="true"/> |
| 129 | + <context> |
| 130 | + <option name="OTHER" value="true"/> |
| 131 | + </context> |
| 132 | + </template> |
| 133 | + |
| 134 | + <!-- Code blocks --> |
| 135 | + <template name="djcode" value="``` $LANG$ $CODE$ ``` $END$" description="Code block" toReformat="false" toShortenFQNames="false"> |
| 136 | + <variable name="LANG" expression="" defaultValue="""" alwaysStopAt="true"/> |
| 137 | + <variable name="CODE" expression="selection()" defaultValue="""" alwaysStopAt="true"/> |
| 138 | + <context> |
| 139 | + <option name="OTHER" value="true"/> |
| 140 | + </context> |
| 141 | + </template> |
| 142 | + |
| 143 | + <template name="djraw" value="``` =$FORMAT$ $CONTENT$ ``` $END$" description="Raw block (HTML, LaTeX, etc.)" toReformat="false" toShortenFQNames="false"> |
| 144 | + <variable name="FORMAT" expression="" defaultValue=""html"" alwaysStopAt="true"/> |
| 145 | + <variable name="CONTENT" expression="selection()" defaultValue="""" alwaysStopAt="true"/> |
| 146 | + <context> |
| 147 | + <option name="OTHER" value="true"/> |
| 148 | + </context> |
| 149 | + </template> |
| 150 | + |
| 151 | + <!-- Block elements --> |
| 152 | + <template name="djquote" value="> $TEXT$ $END$" description="Blockquote" toReformat="false" toShortenFQNames="false"> |
| 153 | + <variable name="TEXT" expression="selection()" defaultValue=""quote"" alwaysStopAt="true"/> |
| 154 | + <context> |
| 155 | + <option name="OTHER" value="true"/> |
| 156 | + </context> |
| 157 | + </template> |
| 158 | + |
| 159 | + <template name="djdiv" value=":::$CLASS$ $CONTENT$ ::: $END$" description="Div with class" toReformat="false" toShortenFQNames="false"> |
| 160 | + <variable name="CLASS" expression="" defaultValue=""warning"" alwaysStopAt="true"/> |
| 161 | + <variable name="CONTENT" expression="selection()" defaultValue="""" alwaysStopAt="true"/> |
| 162 | + <context> |
| 163 | + <option name="OTHER" value="true"/> |
| 164 | + </context> |
| 165 | + </template> |
| 166 | + |
| 167 | + <template name="djhr" value="--- $END$" description="Horizontal rule" toReformat="false" toShortenFQNames="false"> |
| 168 | + <context> |
| 169 | + <option name="OTHER" value="true"/> |
| 170 | + </context> |
| 171 | + </template> |
| 172 | + |
| 173 | + <!-- Lists --> |
| 174 | + <template name="djul" value="- $ITEM1$ - $ITEM2$ - $ITEM3$ $END$" description="Unordered list" toReformat="false" toShortenFQNames="false"> |
| 175 | + <variable name="ITEM1" expression="" defaultValue=""Item 1"" alwaysStopAt="true"/> |
| 176 | + <variable name="ITEM2" expression="" defaultValue=""Item 2"" alwaysStopAt="true"/> |
| 177 | + <variable name="ITEM3" expression="" defaultValue=""Item 3"" alwaysStopAt="true"/> |
| 178 | + <context> |
| 179 | + <option name="OTHER" value="true"/> |
| 180 | + </context> |
| 181 | + </template> |
| 182 | + |
| 183 | + <template name="djol" value="1. $ITEM1$ 2. $ITEM2$ 3. $ITEM3$ $END$" description="Ordered list" toReformat="false" toShortenFQNames="false"> |
| 184 | + <variable name="ITEM1" expression="" defaultValue=""Item 1"" alwaysStopAt="true"/> |
| 185 | + <variable name="ITEM2" expression="" defaultValue=""Item 2"" alwaysStopAt="true"/> |
| 186 | + <variable name="ITEM3" expression="" defaultValue=""Item 3"" alwaysStopAt="true"/> |
| 187 | + <context> |
| 188 | + <option name="OTHER" value="true"/> |
| 189 | + </context> |
| 190 | + </template> |
| 191 | + |
| 192 | + <template name="djtask" value="- [ ] $ITEM1$ - [ ] $ITEM2$ - [ ] $ITEM3$ $END$" description="Task list" toReformat="false" toShortenFQNames="false"> |
| 193 | + <variable name="ITEM1" expression="" defaultValue=""Task 1"" alwaysStopAt="true"/> |
| 194 | + <variable name="ITEM2" expression="" defaultValue=""Task 2"" alwaysStopAt="true"/> |
| 195 | + <variable name="ITEM3" expression="" defaultValue=""Task 3"" alwaysStopAt="true"/> |
| 196 | + <context> |
| 197 | + <option name="OTHER" value="true"/> |
| 198 | + </context> |
| 199 | + </template> |
| 200 | + |
| 201 | + <template name="djdef" value=": $TERM$ $DEFINITION$ $END$" description="Definition list item" toReformat="false" toShortenFQNames="false"> |
| 202 | + <variable name="TERM" expression="" defaultValue=""Term"" alwaysStopAt="true"/> |
| 203 | + <variable name="DEFINITION" expression="" defaultValue=""Definition"" alwaysStopAt="true"/> |
| 204 | + <context> |
| 205 | + <option name="OTHER" value="true"/> |
| 206 | + </context> |
| 207 | + </template> |
| 208 | + |
| 209 | + <!-- Table --> |
| 210 | + <template name="djtable" value="| $H1$ | $H2$ | $H3$ | |---|---|---| | $C1$ | $C2$ | $C3$ | $END$" description="Table" toReformat="false" toShortenFQNames="false"> |
| 211 | + <variable name="H1" expression="" defaultValue=""Header 1"" alwaysStopAt="true"/> |
| 212 | + <variable name="H2" expression="" defaultValue=""Header 2"" alwaysStopAt="true"/> |
| 213 | + <variable name="H3" expression="" defaultValue=""Header 3"" alwaysStopAt="true"/> |
| 214 | + <variable name="C1" expression="" defaultValue=""Cell 1"" alwaysStopAt="true"/> |
| 215 | + <variable name="C2" expression="" defaultValue=""Cell 2"" alwaysStopAt="true"/> |
| 216 | + <variable name="C3" expression="" defaultValue=""Cell 3"" alwaysStopAt="true"/> |
| 217 | + <context> |
| 218 | + <option name="OTHER" value="true"/> |
| 219 | + </context> |
| 220 | + </template> |
| 221 | + |
| 222 | + <!-- Footnote --> |
| 223 | + <template name="djfn" value="[^$NAME$]$END$" description="Footnote reference" toReformat="false" toShortenFQNames="false"> |
| 224 | + <variable name="NAME" expression="" defaultValue=""1"" alwaysStopAt="true"/> |
| 225 | + <context> |
| 226 | + <option name="OTHER" value="true"/> |
| 227 | + </context> |
| 228 | + </template> |
| 229 | + |
| 230 | + <template name="djfndef" value="[^$NAME$]: $TEXT$ $END$" description="Footnote definition" toReformat="false" toShortenFQNames="false"> |
| 231 | + <variable name="NAME" expression="" defaultValue=""1"" alwaysStopAt="true"/> |
| 232 | + <variable name="TEXT" expression="" defaultValue=""Footnote text"" alwaysStopAt="true"/> |
| 233 | + <context> |
| 234 | + <option name="OTHER" value="true"/> |
| 235 | + </context> |
| 236 | + </template> |
| 237 | + |
| 238 | + <!-- Math --> |
| 239 | + <template name="djmath" value="$`$FORMULA$`$END$" description="Inline math" toReformat="false" toShortenFQNames="false"> |
| 240 | + <variable name="FORMULA" expression="selection()" defaultValue=""x^2"" alwaysStopAt="true"/> |
| 241 | + <context> |
| 242 | + <option name="OTHER" value="true"/> |
| 243 | + </context> |
| 244 | + </template> |
| 245 | + |
| 246 | + <template name="djmathblock" value="$$ $FORMULA$ $$ $END$" description="Display math block" toReformat="false" toShortenFQNames="false"> |
| 247 | + <variable name="FORMULA" expression="selection()" defaultValue=""x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}"" alwaysStopAt="true"/> |
| 248 | + <context> |
| 249 | + <option name="OTHER" value="true"/> |
| 250 | + </context> |
| 251 | + </template> |
| 252 | + |
| 253 | + <!-- Attributes --> |
| 254 | + <template name="djattr" value="{.$CLASS$}$END$" description="Class attribute" toReformat="false" toShortenFQNames="false"> |
| 255 | + <variable name="CLASS" expression="" defaultValue=""classname"" alwaysStopAt="true"/> |
| 256 | + <context> |
| 257 | + <option name="OTHER" value="true"/> |
| 258 | + </context> |
| 259 | + </template> |
| 260 | + |
| 261 | + <template name="djid" value="{#$ID$}$END$" description="ID attribute" toReformat="false" toShortenFQNames="false"> |
| 262 | + <variable name="ID" expression="" defaultValue=""my-id"" alwaysStopAt="true"/> |
| 263 | + <context> |
| 264 | + <option name="OTHER" value="true"/> |
| 265 | + </context> |
| 266 | + </template> |
| 267 | + |
| 268 | + <template name="djspan" value="[$TEXT$]{.$CLASS$}$END$" description="Span with class" toReformat="false" toShortenFQNames="false"> |
| 269 | + <variable name="TEXT" expression="selection()" defaultValue=""text"" alwaysStopAt="true"/> |
| 270 | + <variable name="CLASS" expression="" defaultValue=""classname"" alwaysStopAt="true"/> |
| 271 | + <context> |
| 272 | + <option name="OTHER" value="true"/> |
| 273 | + </context> |
| 274 | + </template> |
| 275 | + |
| 276 | + <!-- Frontmatter --> |
| 277 | + <template name="djfront" value="--- title: $TITLE$ author: $AUTHOR$ date: $DATE$ --- $END$" description="YAML frontmatter" toReformat="false" toShortenFQNames="false"> |
| 278 | + <variable name="TITLE" expression="" defaultValue=""Document Title"" alwaysStopAt="true"/> |
| 279 | + <variable name="AUTHOR" expression="" defaultValue=""Author Name"" alwaysStopAt="true"/> |
| 280 | + <variable name="DATE" expression="date("yyyy-MM-dd")" defaultValue="" alwaysStopAt="true"/> |
| 281 | + <context> |
| 282 | + <option name="OTHER" value="true"/> |
| 283 | + </context> |
| 284 | + </template> |
| 285 | + |
| 286 | + <!-- Comment --> |
| 287 | + <template name="djcomment" value="{% $COMMENT$ %} $END$" description="Comment block" toReformat="false" toShortenFQNames="false"> |
| 288 | + <variable name="COMMENT" expression="selection()" defaultValue=""Comment text"" alwaysStopAt="true"/> |
| 289 | + <context> |
| 290 | + <option name="OTHER" value="true"/> |
| 291 | + </context> |
| 292 | + </template> |
| 293 | + |
| 294 | + <!-- Symbol --> |
| 295 | + <template name="djsym" value=":$SYMBOL$:$END$" description="Symbol" toReformat="false" toShortenFQNames="false"> |
| 296 | + <variable name="SYMBOL" expression="" defaultValue=""heart"" alwaysStopAt="true"/> |
| 297 | + <context> |
| 298 | + <option name="OTHER" value="true"/> |
| 299 | + </context> |
| 300 | + </template> |
| 301 | +</templateSet> |
0 commit comments