Skip to content

Commit

Permalink
feat: raw string for tikz
Browse files Browse the repository at this point in the history
  • Loading branch information
mensah-j committed Nov 17, 2024
1 parent c598ecd commit 8081da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/math/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function Page() {
async function compileTikz() {
"use server";
return await tex2svg(
`\\begin{document}\\begin{tikzpicture}\\draw (0,0) circle (1in);\\end{tikzpicture}\\end{document}`,
String.raw`\begin{document}\begin{tikzpicture}\draw (0,0) circle (1in);\end{tikzpicture}\end{document}`,
{
showConsole: true,
},
Expand Down

0 comments on commit 8081da3

Please sign in to comment.