From 62c1ff33b7a90a77cc3851c41c1e689b2eac4a16 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sat, 4 Dec 2021 11:59:52 +0100 Subject: feat: add custom latex Macros (#180) * fix: remove \refs from katex processes * feat: add own latex macros --- components/Sidebar/index.tsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'components/Sidebar/index.tsx') diff --git a/components/Sidebar/index.tsx b/components/Sidebar/index.tsx index 141c26d..c23d938 100644 --- a/components/Sidebar/index.tsx +++ b/components/Sidebar/index.tsx @@ -49,6 +49,7 @@ export interface SidebarProps { setFilter: any tagColors: TagColors setTagColors: any + macros?: { [key: string]: string } } const Sidebar = (props: SidebarProps) => { @@ -75,6 +76,7 @@ const Sidebar = (props: SidebarProps) => { setFilter, tagColors, setTagColors, + macros, } = props const { highlightColor } = useContext(ThemeContext) @@ -225,6 +227,7 @@ const Sidebar = (props: SidebarProps) => { outline, setOutline, collapse, + macros, }} /> -- cgit v1.2.3