This repository has been archived by the owner on Nov 24, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
eafa018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder how I can use inline math since it is disabled in this commit?
eafa018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Me either :/
eafa018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe (untested) MathJax's default will kick in, which is
\(...\)
but not$...$
.(And both
\[...\]
and$$...$$
for display)It does sound from the commit title like the author wanted to disable inline altogether, which is strange.
eafa018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC gitbook has a kramdown-like parser. Kramdown's pre-processes math content into MathJax script tags long before MathJax gets to it. IIRC, kramdown uses
$$
as delimiter for both inline and display (stand alone paragraphs force display mode).BTW, the PR might as well remove the entire surrounding MathJax section since escaping is only useful for
$
delimiters (it enables\$
outside of delimiters to write a plain $ in regular text).