Skip to content

Commit

Permalink
All: Fixes #434: Handle Katex block mode
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed May 1, 2018
1 parent 01f4faf commit e534414
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ReactNativeClient/lib/MdToHtml_Katex.js
Expand Up @@ -11,7 +11,9 @@ class MdToHtml_Katex {

processContent(renderedTokens, content, tagType) {
try {
let renderered = katex.renderToString(content);
let renderered = katex.renderToString(content, {
displayMode: tagType === 'block',
});

if (tagType === 'block') renderered = '<p>' + renderered + '</p>';

Expand Down

0 comments on commit e534414

Please sign in to comment.