Danijar Hafner

Results 165 comments of Danijar Hafner

Good point. The formal specification is the API that's described in the readme: - Markdown cells translate into triple-quoted comments at top level. - Calls to `print()` translate into `doc.add_text()`...

This sounds good. The PR should also change the Handout class to add the existing default styles this way if possible. The only question I have remaining here is how...

That would mean all JS files that happen to be in the output directory will be included in the HTML head, right?

I thought quite a bit about the implementation of this now: - Going forward we'll move the everything HTML related to an exporter class to also support generating LaTeX outputs....

Working prototype: ```python import handout doc = handout.Handout('handout') doc.add_html('') """ $$f(x)=\int x^2 \ \mathrm{d}x$$ """ doc.show() ```

Great to hear. It works well for me, too. I want to include a local copy of the MathJax script by default, so that users don't have to add the...

Thanks! How about just bundling a copy of MathJax the same way the other scripts are bundled? I think updating it every now and then is easy enough and would...

That's more than I expected. Do you know how KaTeX compares?

KaTeX requires including a style file and initializing it by calling a JavaScript function as far as I know.

I played around with including KaTeX but it seems to not play as nicely with our Markdown renderer `marked.js`. I found a compatibility script but online display equations and equations...