diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-12-04 11:59:52 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-04 11:59:52 +0100 |
commit | 62c1ff33b7a90a77cc3851c41c1e689b2eac4a16 (patch) | |
tree | 79c4bcb34bc4a6e0684f07124cdaac01da4e7160 /components/Sidebar/Note.tsx | |
parent | af0a8f2365968bbafc7991304060f381f9e67316 (diff) |
feat: add custom latex Macros (#180)
* fix: remove \refs from katex processes
* feat: add own latex macros
Diffstat (limited to 'components/Sidebar/Note.tsx')
-rw-r--r-- | components/Sidebar/Note.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/Sidebar/Note.tsx b/components/Sidebar/Note.tsx index 62cc8ad..1f864f3 100644 --- a/components/Sidebar/Note.tsx +++ b/components/Sidebar/Note.tsx @@ -20,6 +20,7 @@ export interface NoteProps { openContextMenu: any outline: boolean collapse: boolean + macros?: { [key: string]: string } } export const Note = (props: NoteProps) => { @@ -35,6 +36,7 @@ export const Note = (props: NoteProps) => { openContextMenu, outline, collapse, + macros, } = props const extraStyle = outline ? outlineNoteStyle : viewerNoteStyle @@ -68,6 +70,7 @@ export const Note = (props: NoteProps) => { collapse, nodeById, linksByNodeId, + macros, }} /> <Backlinks |