Inserting JSXGraph into a markdown document, for eventual web publishing?

7 views
Skip to first unread message

Alasdair McAndrew

unread,
Apr 25, 2026, 1:37:47 AMApr 25
to JSXGraph
This is more a generic JavaScript question, but my interest is specifically JSXGraph.  I run a (very seldom updated) blog, using the static blogging engine Hugo, for which blog posts are written in Markdown.  (In my case, I write them in Emacs Org-mode, and then translate them into markdown using an Emacs library for that purpose).

For simple ease of use, I insert my JSXGraphs using an iframe, as (for example):

<iframe width="820" height="660" style="border:none;" src="/my_jsxgraph.html"></iframe>

The "my_jsxgraph.html" is of course a complete page specification, including header, body, scripts and so on.  

This works, but is clearly inefficient.  I can add JavaScript libraries into my blog configuration files, or add them into one of the theme files.  

But I can't quite get that working.  Also, I don't want to clog up my Emacs file - containing all my posts - with lots of JavaScript/JSXGraph code; such would need to be inserted from an external file.

Can anybody give me some advice?

Many thanks.
Alasdair

Tom Berend

unread,
Apr 28, 2026, 5:54:46 PMApr 28
to jsxg...@googlegroups.com
Hi Alasdair,

Using an iframe to separate your JSXGraph code from your blog posts seems like a perfectly good solution.   It may look inefficient because each construction appears to load the JSXGraph library, but your audience will cache it in their browsers.  It's simple and elegant.   

The JSXGraph community has moved to https://forum.jsxgraph.orgHoping you will join us there.

Tom

--
You received this message because you are subscribed to the Google Groups "JSXGraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsxgraph+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jsxgraph/105b1698-3176-40c2-a7f9-7453e719f586n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages