Doubble Backslashes get misinterpreted in KaTex Renderer #1

Closed
opened 2024-04-25 11:12:19 +02:00 by Focron · 0 comments
Focron commented 2024-04-25 11:12:19 +02:00 (Migrated from gitea.praxiko.net)

Problem:

Zola Assumes a Backslash in markdown is an escape character even if its in a KaTex expression, thus ignoring or misinterpreting some equations.

ToDo:

  • Auto detect the beginning and end of a KaTex expression and get it as a Sting
  • Dobble any backslash characters within the String
  • Override the part of the line where a KaTex expression was detected with the generated String
  • Add According Success and Failure messages to the Console output

Example:

$C^T = \begin{pmatrix} 5+3-1\\3+2-7\\ -1+7+1\end{pmatrix}$

Every \\ represents 1 escaped backslash insted of 2 backslashes wich would be expected.

## Problem: Zola Assumes a Backslash in markdown is an escape character even if its in a KaTex expression, thus ignoring or misinterpreting some equations. ## ToDo: - [x] Auto detect the beginning and end of a KaTex expression and get it as a Sting - [x] Dobble any backslash characters within the String - [x] Override the part of the line where a KaTex expression was detected with the generated String - [x] Add According Success and Failure messages to the Console output ## Example: ``` $C^T = \begin{pmatrix} 5+3-1\\3+2-7\\ -1+7+1\end{pmatrix}$ ``` Every ```\\``` represents 1 escaped backslash insted of 2 backslashes wich would be expected.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Focron/JmZm#1
No description provided.