# KaTex Preview Update

#### luca.schultz

10 Feb, 2020 10:49 AM

When I preview math using KaTex (which I prefer over MathJax) I run into a problem. When I add a new block of math, wrapped in \$ signs and save the preview works fine. However if I change anything in the block, KaTex will not render the block unless I remove it from the document, save without it and paste it in again. This behavior has been consistent over multiple files and a long timeframe (4 month maybe) for me. I attached a screencast to illustrate the issue.

1. Support Staff Posted by Brett on 10 Feb, 2020 12:25 PM

Actually, you just need to make a change outside of the math block and save. Marked is inserting the “last edit” marker inside the block, which breaks the rendering. I’ll see if I can fix that.

- Brett

2. Posted by luca.schultz on 10 Feb, 2020 02:38 PM

Thank you for the quick response 👍

That helps already but a fix would still be awesome.

Cheers

Luca

3. Support Staff Posted by Brett on 10 Feb, 2020 06:48 PM

Found a fix, it will be in the next update. Not sure about release
timing yet, but it'll be there soon!

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

### »

• 2020-02-10_11.35.02.gif 6.92 MB

#### Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

# Keyboard shortcuts

### Generic

? Show this help Blurs the current field

### Comment Form

r Focus the comment reply box Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

## Recent Discussions

 29 May, 2020 01:52 AM Sharing a simple fix for path issues with pandoc-citeproc 27 May, 2020 02:40 PM Outline Numbering OK in Preview But Heading 3, 4 Not Honoured in Export as PDF 25 May, 2020 06:32 PM Marked 2 crashes when I try to "Copy Rich Text" 21 May, 2020 09:42 PM Version change to use preview in Bear 21 May, 2020 06:38 PM Bitbucket Support

## Recent Articles

 Fenced code blocks inside indented code blocks Using JavaScript in Marked Custom CSS: Writing custom CSS for Marked License code has already been utilized Highlight sentences longer than a certain number of words