diff --git a/mdtoreveal.py b/mdtoreveal.py index 23c4a54..1d0b087 100644 --- a/mdtoreveal.py +++ b/mdtoreveal.py @@ -178,6 +178,17 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni """ +MDTOREVEAL_JS = """ +Reveal.initialize({ + controls: true, + progress: true, + center: true, + hash: true, + disableLayout: false, + plugins: [ RevealZoom, RevealNotes, RevealSearch, RevealMarkdown, RevealHighlight ] +}); +""" + TPL = """ @@ -216,16 +227,7 @@ TPL = """ - + """ @@ -258,6 +260,7 @@ def main(): root = Path(args.html).resolve().parent (root / "mdtoreveal.css").write_text(MDTOREVEAL_CSS) + (root / "mdtoreveal.js").write_text(MDTOREVEAL_JS) reveal_dir = f"reveal.js-{REVEAL_JS_VERSION}" reveal_path = root / reveal_dir if not reveal_path.exists(): diff --git a/pyproject.toml b/pyproject.toml index 86caa66..6fc3dfa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "mdtoreveal" -version = "0.3.2" +version = "0.3.3" description = "Transform a flat markdown to a reveal.js presentation." authors = [ { name = "Julien Palard", email = "julien@palard.fr" },