Closed prudhomm closed 1 year ago
inline math is not displayed at least in vscode-jupyter
with version 0.3.0 it is rendered like this
as you can see $\sigma$ $\beta$ and $\rho$ are not rendered properly after Let's change
Let's change
A slight change to index.js allows to fix that
diff --git a/src/index.js b/src/index.js index edde7b1..b635183 100644 --- a/src/index.js +++ b/src/index.js @@ -299,8 +299,8 @@ class JupyterConverter { if (type === 'strong') { return `**${node.getText()}**` } - if (type === 'asciimath') { - return `\\\\(${node.getText()}\\\\)` + if (type === 'asciimath' || type === 'latexmath') { + return `$${node.getText()}$` } if (type === 'unquoted') { return node.getText()
Now such a notebook is rendered properly
You are correct, we should enclose inline math expressions using $: https://jupyterbook.org/en/stable/content/math.html#in-line-math
$
inline math is not displayed at least in vscode-jupyter
with version 0.3.0 it is rendered like this
as you can see $\sigma$ $\beta$ and $\rho$ are not rendered properly after
Let's change
A slight change to index.js allows to fix that