holgerbrandl / opencards

A free flashcard learning application for PowerPoint and MarkDown files
http://opencards.info
BSD 2-Clause "Simplified" License
94 stars 27 forks source link

Using math in markdown #32

Open p1tt1 opened 7 years ago

p1tt1 commented 7 years ago

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

holgerbrandl commented 7 years ago

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

Also see

dahadaller commented 5 years ago

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.

holgerbrandl commented 5 years ago

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.