[GH-ISSUE #856] Cached katex content shows hidden latex source #553

Closed
opened 2026-03-02 11:50:49 +03:00 by kerem · 2 comments
Owner

Originally created by @MichaelBrunn3r on GitHub (Jan 10, 2025).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/856

Describe the Bug

When hoarder caches a website that uses Katex to render Latex content, the hidden Latex code is included below the Katex output.

Steps to Reproduce

  1. Add a website using Katex to Hoarder (e.g. https://tavianator.com/2020/one_plus_one.html)
  2. Open "Cached Content" preview

Expected Behaviour

The Latex source code should be hidden and only the rendered Katex output should be shown.

Screenshots or Additional Context

Original:
image

"Cached Content"
image

The rendered Katex outputs look slightly different due to alignment, but that is not my issue. The Latex source code can be seen in the second image, but it is hidden in the original.
The more complex/longer the Latex expression, the more distracting this bug gets.

Device Details

No response

Exact Hoarder Version

v0.21.0

Have you checked the troubleshooting guide?

  • I have checked the troubleshooting guide and I haven't found a solution to my problem
Originally created by @MichaelBrunn3r on GitHub (Jan 10, 2025). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/856 ### Describe the Bug When hoarder caches a website that uses [Katex](https://katex.org/) to render Latex content, the hidden Latex code is included below the Katex output. ### Steps to Reproduce 1. Add a website using Katex to Hoarder (e.g. https://tavianator.com/2020/one_plus_one.html) 2. Open "Cached Content" preview ### Expected Behaviour The Latex source code should be hidden and only the rendered Katex output should be shown. ### Screenshots or Additional Context Original: ![image](https://github.com/user-attachments/assets/82eb428b-ae86-483f-9a68-fb229a7d7e3e) "Cached Content" ![image](https://github.com/user-attachments/assets/6002c05a-f4b2-48a6-8e48-4e8a3c6f5ce8) The rendered Katex outputs look slightly different due to alignment, but that is not my issue. The Latex source code can be seen in the second image, but it is hidden in the original. The more complex/longer the Latex expression, the more distracting this bug gets. ### Device Details _No response_ ### Exact Hoarder Version v0.21.0 ### Have you checked the troubleshooting guide? - [X] I have checked the troubleshooting guide and I haven't found a solution to my problem
kerem 2026-03-02 11:50:49 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@MichaelBrunn3r commented on GitHub (Jan 10, 2025):

It seems you are using readability to generate the "Cached Content"? I guess I should report the bug there instead

<!-- gh-comment-id:2582816305 --> @MichaelBrunn3r commented on GitHub (Jan 10, 2025): It seems you are using [readability](https://github.com/mozilla/readability) to generate the "Cached Content"? I guess I should report the bug there instead
Author
Owner

@MohamedBassem commented on GitHub (Jan 11, 2025):

@MichaelBrunn3r Yeah, we do use readability indeed.

<!-- gh-comment-id:2585248247 --> @MohamedBassem commented on GitHub (Jan 11, 2025): @MichaelBrunn3r Yeah, we do use readability indeed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#553
No description provided.