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",