Sometimes latex rendering doesn't work

#458
by Inscrip - opened

In multiple conversations, latex code somtimes is not rendered and appear as raw text.

exemple :
https://hf.co/chat/r/wq9pV3Z

Hugging Chat org

Ooops is this often the case?

@victor Not just often, but nearly always the case, if not always.

Hugging Chat org

This should work better now cc @nsarrazin

Hugging Chat org

Yeah the example you shared works now @Inscrip :D

@victor Perfect! I can confirm it's working now. Thanks! May I know what was the issue?

Hugging Chat org

@invictus1032 We were escaping the model's raw text output before rendering markdown&latex, which means the latex delimiters like \[ \] or $$ ... $$$ were messed up, now we render first then escape it which fixed things.

@nsarrazin ahh, I see. That's indeed a huge problem. If I understand it correctly, that mistake would've basically disabled latex rendering in all chats. I wonder why the issue didn't blow up.

nsarrazin changed discussion status to closed

Sign up or log in to comment