4 ms·
Clarification: reveal.js supports markdown for individual slides. This project (Marp) allows you to write your whole presentation in a single markdown document.
by rexfm 10y ago
Clarification: reveal.js supports markdown for individual slides. This project (Marp) allows you to write your whole presentation in a single markdown document.
(Using just "---" to separate slides instead of repeating:
<section data-markdown>
<script type="text/template">
slide markdown goes here
</script>
</section>
...seems like a productivity win IMO)
- FraaJad 10y agoYou can just use Pandoc to output reveal.js HTML for you. pandoc hello.md -t revealjs -o hello.html
- bphogan 10y agoOh that's very cool. What's the slide separator?
- IanCal 10y agoThis might help: http://pages.stat.wisc.edu/~yandell/statgen/ucla/Help/Producing%20slide%20shows%20with%20Pandoc.html http://pages.stat.wisc.edu/~yandell/statgen/ucla/Help/Produc... Looks like either top level headings (equivalent to sections I guess) or a line like this "----------" would work.
- deleted 10y ago[deleted]
- ronjouch 10y agoNeat! Combine this with http://entrproject.org/ http://entrproject.org/ and https://github.com/cortesi/devd/releases https://github.com/cortesi/devd/releases for live-regenerating+reloading html output on md input changes :) . Or incrond, but entr feels great for this kind of ad-hoc workflow.
- azdle 10y agoReveal also supports this on external markdown files: https://github.com/hakimel/reveal.js/#external-markdown https://github.com/hakimel/reveal.js/#external-markdown My personal example: http://slides.mkii.org/#/1 http://slides.mkii.org/#/1
- slara 10y agoWe use this in generator-reveal[1]. One markdown file per slide and minimal configuration in a json file. I have no shame [1]: https://github.com/slara/generator-reveal https://github.com/slara/generator-reveal