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

Automatic View as markdown not working as expected #3873

Open
meditans opened this issue Feb 21, 2025 · 4 comments
Open

Automatic View as markdown not working as expected #3873

meditans opened this issue Feb 21, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@meditans
Copy link

Description

Hi, I usually edit marimo files as .md files from emacs (they are automatically exported from an org-mode file).
When there's a bit of markdown in the .md file, and I load the file for the first time, each cell will show as code (containing a mo.md call). I can then click on the View as markdown button to change it in a markdown cell, and then I can click on the hide the source to get what I really want, i.e. the rendered markdown.

Now, I get that at the beginning, all cells, including markdown ones, are code, because I might want to interpolate values in the md cell, but the notebook is set up as run on startup (and on save). It would be nice if I could cut on the number of clicks I have to do to get to the rendered markdown (for now, 2 clicks per cell).

Suggested solution

I would suggest a configuration option that says: If the cell has been evaluated (and is now markdown), just hide the source automatically. What do you guys think?

Alternative

No response

Additional context

No response

@meditans meditans added the enhancement New feature or request label Feb 21, 2025
@dmadisetti
Copy link
Collaborator

What version are you running? Because I think with the newest codeblock form this is the default?

But yup! markdown should be clean on render

@meditans
Copy link
Author

>>> marimo.__version__
'0.11.7'

which should be the latest according to pypi!

@akshayka
Copy link
Contributor

As a workaround for now, — there is a hide all markdown code action in the command palette (Cmd/Ctrl+k).

@dmadisetti
Copy link
Collaborator

Can you send me a screenshot of opening marimo/_tutorials/markdown_format.md?

/ share what your org-mode export looks like? Cannot seem to replicate

@dmadisetti dmadisetti added bug Something isn't working and removed enhancement New feature or request labels Feb 22, 2025
@dmadisetti dmadisetti changed the title Automatic View as markdown Automatic View as markdown not working as expected Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants