Stackedit/src/data/emptyTemplateValue.html

29 lines
677 B
HTML
Raw Normal View History

<!-- Specify your Handlebars template here.
The following JavaScript context will be passed to the template:
{
files: [{
name: 'The filename',
content: {
text: 'The file content',
html: '<p>The file content</p>',
yamlProperties: 'The file properties in YAML format',
properties: {
// Computed file properties object
},
toc: [
// Table Of Contents tree
]
}
}]
}
You can use Handlebars built-in helpers and the custom StackEdit ones:
2017-09-26 22:54:26 +00:00
{{#tocToHtml files.0.content.toc}}{{/tocToHtml}} will produce a clickable TOC.
2017-09-23 19:01:50 +00:00
{{#tocToHtml files.0.content.toc 3}}{{/tocToHtml}} will limit the TOC depth to 3.
-->
2017-09-23 19:01:50 +00:00