Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

KaTeX 0.3.* #2

Closed
wants to merge 1 commit into from
Closed

KaTeX 0.3.* #2

wants to merge 1 commit into from

Conversation

jbhannah
Copy link

Bump KaTeX version, update stylesheet, add woff2 fonts, and enable displayMode detection.

Bump KaTeX version, update stylesheet, add woff2 fonts, and enable
displayMode detection.
@@ -22,7 +22,10 @@ module.exports = {
end: "$$"
},
process: function(blk) {
return katex.renderToString(blk.body);
var tex = blk.body;
var display = tex[0] === "\n";
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Borrowed (in inverted form) from plugin-mathjax, detects the following as display mode:

$$
i = \sqrt{-1}
$$

@emilbayes
Copy link

@SamyPesse This pull request is obsolete now, I guess you can close

@SamyPesse SamyPesse closed this Sep 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants