Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\n in mo.md literally interperted in markdown mode #1004

Closed
dmadisetti opened this issue Mar 27, 2024 · 1 comment
Closed

\n in mo.md literally interperted in markdown mode #1004

dmadisetti opened this issue Mar 27, 2024 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@dmadisetti
Copy link
Collaborator

dmadisetti commented Mar 27, 2024

Describe the bug

Clicking on the markdown mode cell button transforms the literal \n to a breakline

image
image

changing back

image

Environment

0.3.4

Code to reproduce

mo.md(
    r"""
    Some people denote Poisson's ratio as $n$, $\nu$, or even $\mathllap{}\cdot\mathllap{\alpha}$
    """
)

Breaks on the \nu

try it here:
https://marimo.app/l/z5epex

@fuenfundachtzig
Copy link
Contributor

The problem seems to be caused by this line at the end of the dedent function itself.

image

#1038 proposes to switch to dedent-js which doesn't have this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants