Added inline comments, hooked up markdown-toc to npm start

This commit is contained in:
2017-03-27 18:44:53 +11:00
parent 3214a56453
commit 7ee1216b1f
5 changed files with 12 additions and 8 deletions
+5 -1
View File
@@ -1,5 +1,9 @@
//global markdown object and configuration
var markdown = window.markdownit()
//allow HTML-style comments
.use(window.markdownitInlineComments)
//configure for semantic-style visibility controls
.use(window.markdownitContainer, 'mobileOnly', {
validate: function(params) {
@@ -8,7 +12,7 @@ var markdown = window.markdownit()
render: function (tokens, idx) {
if (tokens[idx].nesting === 1) {
//opening tag
return '<div class="mobileOnly">';
return '<div class="ui mobile only grid">';
} else {
// closing tag
return '</div>';