Created
April 18, 2013 22:11
-
-
Save phette23/5416648 to your computer and use it in GitHub Desktop.
Sublime Text Snippets for Footnotes in Markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[<span id="fn$1">[$1]</span><a href="#note$1">^</a> $2 | |
$0]]></content> | |
<tabTrigger>fn</tabTrigger> | |
<scope>text.html.markdown.multimarkdown, text.html.markdown</scope> | |
<description>Footnote at Bottom</description> | |
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[<a href="#fn$1" id="note$1">[$1]</a> | |
$0]]></content> | |
<tabTrigger>note</tabTrigger> | |
<scope>text.html.markdown.multimarkdown, text.html.markdown</scope> | |
<description>In-Text Footnote</description> | |
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Copy both of the .sublime-snippet files into your packages\user directory for Sublime Text | |
2. Open a file and set the syntax to Markdown | |
3. In the main body of a text, type "note" & then hit Tab | |
4. Enter the number of the footnote | |
5. At the bottom where you want the footnotes to appear, type "fn" & hit Tab | |
6. Type the number of the footnote | |
7. Hit Tab again, type in the footnote | |
8. Rejoice & be merry. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment