-
Notifications
You must be signed in to change notification settings - Fork 857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MathJax support #25
Comments
Here is one way handle MathJax slides without modifications: https://gist.github.com/3735579. |
Hm that demo actually doesn't work for me in Chrome or FF on OSX. |
That is the same-origin-policy that is enforced by Chrome and FF and prevents local GET requests from JavaScript. I am loading the markdown from a separate file here. Works locally with Safari or via http with Chrome and FF. |
@monofon Nice work-around for loading the markdown separately. I guess some kind of a remark "ready" event running after the conversion from markdown to HTML would solve this and other, similar issues. |
I've added a // <script src=".../remark.js"></script>
// <script src=".../MathJax.js?config=...&delayStartupUntil=configured"></script>
remark.on('ready', function () {
MathJax.Hub.Configured();
}); The functionality will be included in the next release, but I've added the master bundles to the repository for now (remark.min.js). |
Great thanks guys! |
Thanks for sharing! :) |
Thanks for remark! ;) |
@gnab Has the |
@kynan Since 0.5.0 the The reason for the change is that remark slideshows may now be embedded into custom DOM elements, not just as a full-page slideshow, and you may create several ones, if you'd like to. Before, the one-and-only full-page slideshow was automatically created on the document's As you can see in the remark boilerplate HTML, the |
@gnab Thanks for clarifying. I must be doing something wrong, my math isn't rendered with the following at the bottom of the
|
You're almost there :)
Here is a demo that'll get you going. |
@gnab Brilliant, many thanks, your example got me on track. The last piece of the puzzle was that I hadn't wrapped my math in a |
MathJax doesn't seem to work out of the box. I assume this is because it's making its pass too early, before the slides have been generated. I'm on a deadline right now but maybe I'll come back and fix this later.
The text was updated successfully, but these errors were encountered: