dendronhq / dendron

The personal knowledge management (PKM) tool that grows as you do!
https://wiki.dendron.so
Apache License 2.0
6.75k stars 257 forks source link

Math rendering broken in sidebar #2865

Open Jacob-Guglielmin opened 2 years ago

Jacob-Guglielmin commented 2 years ago

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

Describe the bug

In the right-hand sidebar of published notes, math appears as plaintext instead of being rendered properly. For example, $5$ instead of 5.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new note with a header containing math
  2. Publish the site
  3. Go to the site and view the note
  4. Look at the right-hand sidebar

Expected behavior

Math should be rendered as in the document when it is contained in headers.

Screenshots

image

Desktop (please complete the following information)

SeriousBug commented 2 years ago

Is Test: 1 + 1 = 2 a header? Like # Test: $1 + 1 = 2? I don't think using the math syntax inside headers is supported at the moment, we'll track this as a feature request. Thanks.

Jacob-Guglielmin commented 2 years ago

Yes, it is a header.