rednotebook icon indicating copy to clipboard operation
rednotebook copied to clipboard

Latex/Mathjax not working when diacritics present

Open carnendil opened this issue 5 years ago • 0 comments

Versions

RedNotebook version : 2.6.1 and a few earlier versions

Operating system and version: Ubuntu 16.04

Expected behavior

Mathjax rendering LaTeX normally.

Actual behavior

Whenever there is a letter with accents or diacritics (in Spanish, the vowels: á, é, í, ó, ú, and ü; and the letter ñ), LaTeX will not be rendered properly, showing all code in plain text.

This seems to be related somehow to issue #331 .

Steps to reproduce the behavior

  1. On a blank page, type: \(\LaTeX\)

  2. Preview the page, it should render properly captura de pantalla de 2018-10-04 17-40-00

  3. Edit the page to: \(\LaTeX\) en español

  4. When previewing the page, "LaTeX" is not rendered by Mathjax. captura de pantalla de 2018-10-04 17-40-14

Log output when reproducing behavior

($HOME/.rednotebook/rednotebook.log or C:\Users<username>.rednotebook.log)

After both tests, the log adds two instances with the following (one per test): (timestamp) DEBUG Add mathjax code: True

carnendil avatar Oct 04 '18 23:10 carnendil