Open dmadisetti opened 5 months ago
Others:
```{marimo} python
assert None == 123, "string"
```{python}
assert None == 123, "string"
```python .marimo (no good for pandoc)
assert None == 123, "string"
Other suggestions:
Ok, just found this: https://github.com/jgm/pandoc/pull/8187
So these are fine
```python {.marimo}
assert None == 123, "string"
or ```python {#marimo}
assert None == 123, "string"
or ```python {marimo=}
assert None == 123, "string"
but still might be worth creating an issue for null attributes to make the ```python {marimo} syntax work
I think i like python {.marimo}
the best (unless can get python {marimo}
)
The fix in pandoc looks pretty trivial: https://github.com/jgm/pandoc/issues/9791
I think it's going to be a matter of will- but I think it's good functionality. Hopefully, I get a positive response
One downside to this notation is that it breaks in marimo markdown itself (current renders no styling, but proposed does not render)
I might pick this up sooner than later with backwards compat in mind. As I'm working more directly with the notebooks (esp, with the kiosk mode picking up speed), the current notation is a little cumbersome
I don't think python {marimo}
is happening anytime soon, so will put in python {.marimo}
.
@mscolnick if the SQL changes are coming up, I can make sure sql {.marimo}
works too
amazing! i agree it would be worth doing sooner to avoid too much breakage. If backwards compat is hard, we can make a breaking change and bump acccordingly (probably could read backwords compat and then write forwards)
Just checks to see if {.*python.*}
is in the code block,
I think it should check for {.*marimo.*}
. I think this will make it automatically backwards compatible?
Will submit PR once https://github.com/facelessuser/pymdown-extensions/pull/2470 is released, conditional on version number
Description
Current codeblock style is ```{.python.marimo}
I think code blocks should:
{.python}
does the trick){.python.marimo name="whatever"}
{.python.marimo}
is a little weird)Suggested solution
Alternative
Making an issue for comments, but maybe better changed to a discussion post? I'm think asking on discord and getting feedback if people are actually using markdown.
Additional context
@mscolnick suggestion!