From 4aeb2a6a31f752d592d442da48259a8851652041 Mon Sep 17 00:00:00 2001 From: Michael Ochmann Date: Sun, 2 Oct 2022 18:52:19 +0200 Subject: [PATCH] now also supporting subtitle and icon on title slide --- src/Parser.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Parser.js b/src/Parser.js index 6246353..30f9782 100644 --- a/src/Parser.js +++ b/src/Parser.js @@ -36,6 +36,11 @@ const tokenize = string => { const injectTitle = (deck, meta) => { const title = []; + if (meta?.icon) + title.push({ + type : "image", + href : meta.icon + }); if (meta?.title) title.push({ type : "heading", @@ -47,6 +52,17 @@ const injectTitle = (deck, meta) => { } ] }); + if (meta?.subtitle) + title.push({ + type : "heading", + level : 2, + tokens : [ + { + type : "text", + text : meta.subtitle + } + ] + }); if (meta?.author) title.push({ type : "paragraph",