facebookresearch / nougat

Implementation of Nougat Neural Optical Understanding for Academic Documents
https://facebookresearch.github.io/nougat/
MIT License
8.81k stars 561 forks source link

generates HTML example #125

Open 117503445 opened 1 year ago

117503445 commented 1 year ago

I'd like to add a feature that generates examples of HTML similar to the one in the official website, to make it easier to quickly evaluate results

lukas-blecher commented 1 year ago

I'm not sure I understand what you mean. Do you mean something like this: https://htmlpreview.github.io/?https://github.com/Mathpix/mathpix-markdown-it/blob/master/examples/html/input-mmd-to-html.html

117503445 commented 1 year ago

Yes, I've tried several mmd to html converters before and none of them worked as well as the one you provided.

However I get Undefined control sequence \textsc and Undefined control sequence \coloneqq, any ideas how to fix that? Here is my file.

hotstuff.zip

YazmineAbbaszadegan commented 12 months ago

import markdown

html = markdown.markdown(markdown_format) displayHTML(html)

117503445 commented 12 months ago

import markdown

html = markdown.markdown(markdown_format) displayHTML(html)

Using the library Python-Markdown, the resulting HTML doesn't render the formulas correctly

image