News for hackers. Stuff that matters.
Re:Ask HN: What's the state of the art for drawing math diag... by ajkjk on Monday November 20, 2023 @03:40PM (#38354357)
Ah interesting, I'll check it out. I figured this had to exist! It might be ideal --- I'm on a github-pages Jekyll site and I like how simple that is, but it means I can't do anything server-side at all, not even making custom Jekyll plugins.

How big does the resulting binary get?

edit: oh, looked at the demo on https://tikzjax-demo.glitch.me/ and it seems like it is just a couple MB. Not bad.

Re:Ask HN: What's the state of the art for drawing math diag... by thdc on Monday November 20, 2023 @05:17PM (#38355693)
Yeah around 1.5mb transferred but less of an issue with caching of course.

You also won't have something nice like $$ or \[ \] and will have to put the

    <script type="text/tikz">
        \begin{tikzpicture}
            ...
        \end{tikzpicture}
    </script>
tags directly in your markdown, if that even works.
Re:Ask HN: What's the state of the art for drawing math diag... by ajkjk on Monday November 20, 2023 @05:46PM (#38356019)
Jekyll at least has an <% include %> tag that can introduce html into a markdown document, so I can probably use that. Tbd. The $$ is awkward though.