This time I want to use PlotlyJS (and its interactive plots) and can't figure out how to insert the generated html into a page. Did I miss a command that is for this purpose? Or should I write my own? 😄😄
The first code block just defines a jd_plotly function which prints JuDoc Markdown that looks similar to the initial example I gave earlier, the difference is that it takes a JSON string of the plot and reads it.
The #hideall means that code is not shown on the page.
Then the second block (and you could have more of those) has some valid PlotlyJS code and then passes the jsonstring to jd_plotly which writes the markdown and it ends up being displayed:
Notes: hopefully that should give you a good idea on how to tweak things and make them better or more appropriate to your case. For instance you could also add a #hideall in the second code block if you didn't want to show the code etc.
Hope this answers the question! please let me know and I'll close the issue (I'll add this stuff to the docs as well).