In jeykll, why latex can't be parsed when I name the post with suffix markdown but it works when with suffix html?

StackOverflow https://stackoverflow.com/questions/16292308

  •  13-04-2022
  •  | 
  •  

Question

I am using the maruku markdown engine in jeykll, and when post a post, I use math code such as:

\begin{aligned} \dot{x} & = \sigma(y-x) \ \dot{y} & = \rho x - y - xz \ \dot{z} & = -\beta z + xy \end{aligned}

$ \dot{x} & = \sigma(y-x) \ \dot{y} & = \rho x - y - xz \
\dot{z} & = -\beta z + xy $

\( \dot{x} & = \sigma(y-x) \ \dot{y} & = \rho x - y - xz \
\dot{z} & = -\beta z + xy \)

\[ \dot{x} & = \sigma(y-x) \ \dot{y} & = \rho x - y - xz \
\dot{z} & = -\beta z + xy \]

if the post name is ended with markdown or md instead of html, only the first latex code can be parsed and transformed to a correct layout.

Why? How should I do so that I could name file with suffix .markdown and hanle the latex correctly?

Was it helpful?

Solution

use `` to wrap the original mark could solve the problem, such as:

`\(\Latex\)` or `\[ your equation here \]`

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top