abd0890512
Added sponsorship options. Added pdf and pandoc export. Added emoji and mermaid extensions. Added find/replace support. Added HTML template with TOC. Updated welcome file.
39 lines
815 B
HTML
39 lines
815 B
HTML
<!-- 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
|
|
]
|
|
}
|
|
}]
|
|
}
|
|
|
|
|
|
As an example:
|
|
|
|
<html><body>{{{files.0.content.html}}}</body></html>
|
|
|
|
will produce:
|
|
|
|
<html><body><p>The file content</p></body></html>
|
|
|
|
|
|
You can use Handlebars built-in helpers and the custom StackEdit ones:
|
|
|
|
{{#tocToHtml files.0.content.toc}}{{/tocToHtml}} will produce a clickable TOC.
|
|
|
|
{{#tocToHtml files.0.content.toc 3}}{{/tocToHtml}} will limit the TOC depth to 3.
|
|
-->
|
|
|