Created
October 8, 2015 21:10
-
-
Save phallguy/65774a87db1024d36129 to your computer and use it in GitHub Desktop.
Snippet to add a TOC to Markdown in Sublime
This file contains hidden or 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[ | |
<!-- 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> |
If you have VIM....well I'm sure there's a cool bash script that does the same thing.
OK, cool npm script
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Needs MarkdownTOC package to work