docling-project / docling-project/docling

Mathjax tags in html_backend.py

Open
#1,404 2 comments 1 reaction 2 assignees Claimed by @rateixei View on GitHub
question
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
2d 21h
Merged PRs (30d)
84

Description

### Question

I'm using html_content with MathJax to display mathematical formulas. However, when converting it to Markdown using the ```HTML_backend```, the ```MathJax``` expressions aren't rendered correctly—some formulas written in LaTeX within ```MathJax``` tags disappear during the conversion.
```






```

In markdown convert use HTML_backend:
```

```

Here is convert I need:
![Image](https://github.com/user-attachments/assets/6fdcc208-7a24-49f1-850e-640c2259af2b)

Could you please update the mathjax_tags in the ```HTML_backend``` to ensure that LaTeX formulas within ```MathJax``` tags are preserved during Markdown conversion?
Thank you

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.