Skip to content

Instantly share code, notes, and snippets.

@phallguy
Created October 8, 2015 21:10
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 phallguy/65774a87db1024d36129 to your computer and use it in GitHub Desktop.
Save phallguy/65774a87db1024d36129 to your computer and use it in GitHub Desktop.
Snippet to add a TOC to Markdown in Sublime
<snippet>
<content><![CDATA[
<!-- MarkdownTOC autolink=true autoanchor=true -->
<!-- /MarkdownTOC -->
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>toc</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html.markdown</scope>
</snippet>
@phallguy
Copy link
Author

phallguy commented Oct 8, 2015

Needs MarkdownTOC package to work

@phallguy
Copy link
Author

phallguy commented Oct 8, 2015

If you have VIM....well I'm sure there's a cool bash script that does the same thing.

@phallguy
Copy link
Author

phallguy commented Oct 8, 2015

OK, cool npm script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment