Skip to content

* escaped as \* in latex #780

Description

@bebound

$$ * $$ 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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions