$$ * $$ exported as \\[ \* \\] in markdown, which is not a valid equation.
Is there a way to keep it as *?
_ also becomes \_. Is there an option to disable escaping, or a KaTeX setting to render it correctly?
Update:
The LLM suggested adding this setting, and it works. I'm not sure if it's the best solution.
(with-eval-after-load 'ox-hugo
(defun my/ox-hugo-prevent-latex-escape (orig-fun &rest args)
(let ((str (car args)))
str))
(advice-add 'org-blackfriday-escape-chars-in-equation :around #'my/ox-hugo-prevent-latex-escape))
$$ * $$exported as\\[ \* \\]in markdown, which is not a valid equation.Is there a way to keep it as
*?_also becomes\_. Is there an option to disable escaping, or a KaTeX setting to render it correctly?Update:
The LLM suggested adding this setting, and it works. I'm not sure if it's the best solution.