Skip to content

Commit

Permalink
fix tikz debug option
Browse files Browse the repository at this point in the history
  • Loading branch information
BearToCode committed Jul 20, 2023
1 parent ffe4f3a commit c3dbaa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions demo/src/routes/placeholder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export const placeholderText = `# Carta Demo
Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the **Galaxy** lies a small unregarded yellow sun.
Orbiting this at a distance of roughly _ninety-two million miles_ is an utterly insignificant little blue green planet :earth_africa: whose ape-descended life forms are so amazingly primitive that they still think digital watches are a pretty neat idea.
\`\`\`tikz
\\usepackage{pgfplots}
\\pgfplotsset{compat=1.16}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-tikz/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const tikzTokenizer = (options?: TikzExtensionOptions): marked.TokenizerAndRende
class="tikz-generated ${options?.center ?? ''}"
>
<script
data-show-console="${options?.debug ? 'true' : 'false'}"
"${options?.debug ? 'data-show-console' : ''}"
type="text/tikz"
>
${tidyTikzSource(token.raw.slice(8, token.raw.length - 4))}
Expand Down

0 comments on commit c3dbaa0

Please sign in to comment.