Skip to content

Instantly share code, notes, and snippets.

@phette23
Created April 18, 2013 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phette23/5416648 to your computer and use it in GitHub Desktop.
Save phette23/5416648 to your computer and use it in GitHub Desktop.
Sublime Text Snippets for Footnotes in Markdown
<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>
<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>
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