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.
Note
Slide names are sanitized to ASCII-characters (a-z, A-Z, 0-9, -, _), Special characters including umlauts (äöüß), accents (éñç), and non-Latin scripts will be transliterated or removed. For best results, use simple Latin filenames.
<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 ]
})