sethyuan / logseq-plugin-doc

Show page in a more document like look and provide quick exporting.
MIT License
90 stars 4 forks source link

equations not getting exported properly when exported to HTML #7

Closed AvijeetPrasad closed 2 years ago

AvijeetPrasad commented 2 years ago

When the doc is being exported to HTML, the text for equation is not getting rendered properly.

For example, the text $m_ee^2c$ is being rendered as shown in the attached screenshot. You can see that is first shows the equation in correct form, but then it is followed by the equation text again.

Screenshot 2022-01-24 at 21 02 20

sethyuan commented 2 years ago

Sorry for the inconvenience! However I was unable to reproduce it with the expression you gave. What version of Logseq and the plugin are you using? Can you test it again with the newest version of both? Also, can you try with all the themes disabled?

AvijeetPrasad commented 2 years ago

Hi, Thanks for checking this issue. I am currently on 0.5.9+nightly.20220121 of Logseq and version v1.2.2 of the Doc View Exporter plugin.

I checked again with the default theme but the problem still persists in Safari browser but works fine in Google Chrome.

For a test file with the following content

- The theory of relativity connects mass and energy as follows
    - $$e=mc^2$$

I got the following results in Safari and Chrome. Chrome: Screenshot 2022-01-25 at 11 51 10 Safari: Screenshot 2022-01-25 at 11 51 44

As you can see, the equation is rendered properly in Chrome but not in Safari. So, it could be a browser related issue as well.

sethyuan commented 2 years ago

I used Safari to test again, still nothing. It was properly rendered. My Safari version is 15.2. Could it be due to some changes in the nightly version? Can you try 0.5.9?

AvijeetPrasad commented 2 years ago

Thanks for checking that. I am also on Safari 15.2. Let me wait till the next Logseq release and then update you back.