Skip to content

Commit

Permalink
plugin-tikz: set async true to fix rendering issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BearToCode committed Aug 8, 2023
1 parent 5cdbb71 commit 2391840
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/plugin-tikz/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const tikz = (options?: TikzExtensionOptions): CartaExtension => {
},
markedExtensions: [
{
async: true,
extensions: [tikzTokenizer(options)]
}
],
Expand Down Expand Up @@ -167,7 +168,7 @@ async function loadTikz(options?: TikzExtensionOptions) {
}

function tidyTikzSource(tikzSource: string) {
// FROM: OBSIDIAN-TIKZ, CREDIT TO THEM
// From: Obsidian-TikZ plugin, credit to them
// Remove non-breaking space characters, otherwise we get errors
const remove = ' ';
tikzSource = tikzSource.replaceAll(remove, '');
Expand Down

0 comments on commit 2391840

Please sign in to comment.