Open carlohamalainen opened 8 months ago
Do this instead:
$$
P
\\=
Q
$$
Lines beginning with these Markdown block level indicators are not passed through: =
, -
, #
, and >
.
$$
=
$$
$$
-
$$
$$
#
$$
$$
>
$$
@j2kun Comments?
@jmooring thanks for the quick reply.
Do this instead:
$$ P \\= Q $$
Unfortunately that introduces a newline in the equation:
I'm expecting:
@carlohamalainen With this:
$$
P
\\=
Q
$$
I get this when using the MathJax engine:
And I get this when using the KaTeX engine:
This is a known KaTeX issue: https://github.com/KaTeX/KaTeX/issues/437
Usage of the Passthrough extension with Hugo is described here: https://gohugo.io/content-management/mathematics
I'm at conferences through the weekend but will take a look after. My initial impression is that a good workaround is to use the aligned environment.
Hi,
This is more of a question than an issue.
I had a problem with a math block when I migrated from Jekyll to Hugo. A minimal example:
P and Q were large matrices so I put them on separate lines.
Goldmark runs the block parsers first and the
=
is recognised as a header, so it renders toI guess this is an inherent limitation because passthrough is an inline parser? So even changing its priority wouldn't help because the block parsers run before the inline parsers?
An easy workaround is to indent the
==
by 4 spaces.