A plugin for reveal.js that support markdown with metadata.
To use the plugin configure reveal.js plugin as:
Reveal.initialize({
hash: true,
// ...
plugins: [ RevealAwesoMD ]
// ...
});
And add the following script tag in index.html
file:
<script src="plugin/awesoMD/awesoMD.js"></script>
Create a folder name templates
in your project root directory where you can add your templates file.
Name your template file as <template-name>-template.html
.
<project-root-directory>
└── templates
├── <template-name-1>-template.html
├── <template-name-2>-template.html
└ ...
If the templates
folder is not in the root directory, then the path to the templates folder can be set as below:
const awesoMd = RevealAwesoMD()
awesoMd.setBaseUrl(<path-to-templates-folder>)
Reveal.initialize({
plugins: [ awesoMd ]
})