opencards icon indicating copy to clipboard operation
opencards copied to clipboard

Using math in markdown

Open p1tt1 opened this issue 7 years ago • 3 comments

Is there a way to use math terms inside markdown files. the common math identifer like $...$ or \\(...\\) don't work.

p1tt1 avatar Mar 06 '17 18:03 p1tt1

It does not work yet. I'll check if we could enable MathJax for html rendering.

Also see

holgerbrandl avatar Mar 07 '17 12:03 holgerbrandl

Hi, has mathjax been incorporated into open cards? I see that "Better support for equations (e.g. using MathJax)" is listed as one of the advantages of markdown slides on the help page Screenshot_2019-05-29 OpenCards

If I render the following in my markdown viewer,

## Testing the math output?

This is a sum: $\sum{x}$, and so is this $a+b$. This is a fraction: $\frac{a}{b}$.

Then I get the following output: Markdown

However, in OpenCards, the same markdown/mathjax looks like this: Flashcards

It seems like mathjax isn't rendering for me. I'm running Ubuntu 16.04 LTS and I installed using the .deb package.

dahadaller avatar May 29 '19 22:05 dahadaller

It's not yet incorporated. However, I still think that it should be doable since there is at least one reported example with http://waterloo.sourceforge.net/JavaFX/quadratic.html

However, in general there might be issues as described under https://stackoverflow.com/questions/32146692/loading-mathjax-in-javafx-webview

Feel welcome to put together a PR.

holgerbrandl avatar Jun 07 '19 13:06 holgerbrandl