Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Skip objects in front-matter
Sebastian Martinez committed 3 years ago
commit 34cb75da121b81d6867cec4d1e229c438547afed
parent 41168db8d56c89c4ae231bbaeb0b0997be5bcc1d
1 file changed +3 -1
modified src/Markdown.svelte
@@ -22,7 +22,9 @@
  export let getImage: (path: string) => Promise<proj.Blob>;
  export let hash: string | null = null;

-
  const frontMatter = Object.entries(doc.data);
+
  const frontMatter = Object.entries(doc.data).filter(
+
    ([, val]) => typeof val === "string" || typeof val === "number",
+
  );
  marked.use({ extensions, renderer });

  let container: HTMLElement;