You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code blocks have similar whitespace issues as display equations. We are trying to render a notebook to both the web (via jupyter-book) and latex using mystmd, but for small "inline" code examples the latex version starts a new (indented) paragraph.
Myst Version
myst --version
v1.3.19
Reproducible Example
Here is a minimal markdown example:
As with any GTSAM class, you can type
```python
help(gtsam.DiscreteDistribution)
```
to get documentation on its constructors and methods.
This renders fine on the web, without an indent, but unfortunately in latex extra newlines are added (as was the case for display equations before that was fixed), as shown below:
As with any GTSAM class, you can type
\begin{minted}[breaklines]{python}
help(gtsam.DiscreteDistribution)
\end{minted}
to get documentation on its constructors and methods.
Proposed Solution
I imagine a very similar fix as with display equations can be used.
The text was updated successfully, but these errors were encountered:
choldgraf
changed the title
Code blocks whitespace
Code blocks without a blank line after the end are rendered as a separate paragraph rather than in-line
Jan 3, 2025
Description
Code blocks have similar whitespace issues as display equations. We are trying to render a notebook to both the web (via jupyter-book) and latex using
mystmd
, but for small "inline" code examples the latex version starts a new (indented) paragraph.Myst Version
Reproducible Example
Here is a minimal markdown example:
This renders fine on the web, without an indent, but unfortunately in latex extra newlines are added (as was the case for display equations before that was fixed), as shown below:
Proposed Solution
I imagine a very similar fix as with display equations can be used.
The text was updated successfully, but these errors were encountered: