hackmdio / hackmdio/hackmd-io-issues

"Raw HTML" contains rendered MathJax output

Open
#305 0 comments 1 reaction 0 assignees View on GitHub
known issue
Dominant language
No language data
Stars
40
Forks
9
PR merge metrics
No merged PRs in 30d

Description

### Is this a hackmd.io issue?

- [x ] Yes, the bug happens on https://hackmd.io

### What's the problem
When exporting as "raw HTML" all math content is included as the mathjax output.

#### Current behaviour
The output of mathjax is included in the "raw" html. This does not do any good as the raw html does not include the css to render the mathjax spans correctly. The math just shows up as a jumbled mess.

#### Expected behaviour
Math should be included "as-is", i.e. `$$E=mc^2$$ `
If this was the behaviour, I could use the output in a context where mathjax is already loaded or could add a script tag to load mathjax and it would all render correctly.

Yes I can export the markdown and use pandoc but then I'll loose some hackmd features in the html which I like.

#### Additional context
Fixing this might resolve or simplify a solution for #118

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.