A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
Update pymdownx admonition smoke tests with new syntax (#8028)
Trevor Manz05b00213ab6d
diff --git a/marimo/_smoke_tests/admonitions.py b/marimo/_smoke_tests/admonitions.pyindex 9f74dbcd6b..d98f2fa400 100644--- a/marimo/_smoke_tests/admonitions.py+++ b/marimo/_smoke_tests/admonitions.py@@ -8,7 +8,7 @@import marimo-__generated_with = "0.15.5"+__generated_with = "0.19.6"app = marimo.App()@@ -22,7 +22,6 @@ def _():def _(mo):kinds = [# ---- "info","note",# ---"danger",@@ -42,10 +41,10 @@ def _(mo):def create(kind):return mo.md(- rf"""-- !!! {kind} "{kind} admonition"- This is an admonition for {kind}+ f"""+ /// {kind} | {kind} admonition+ This is an admonition for {kind}+ ///""")@@ -56,37 +55,37 @@ def _(mo):@app.celldef _(mo):- mo.md("""# Misc""")+ mo.md("""+ # Misc+ """)return@app.celldef _(mo):- mo.md(- rf"""- !!! important ""- This is an admonition box without a title.- """- )+ mo.md("""+ /// important |+ This is an admonition box without a title.+ ///+ """)return@app.celldef _(mo):- mo.md(- r"""- !!! tip ""- Importa recordar as seguintes regras de diferenciação de matrizes:+ mo.md(r"""+ /// tip |+ Importa recordar as seguintes regras de diferenciação de matrizes:- $$\frac{\partial\, u'v}{\partial\, v} = \frac{\partial\, v'u}{\partial\, v} = u$$+ $$\frac{\partial\, u'v}{\partial\, v} = \frac{\partial\, v'u}{\partial\, v} = u$$- sendo $u$ e $v$ dois vetores.+ sendo $u$ e $v$ dois vetores.- $$\frac{\partial\, v'Av}{\partial\, v}=2Av=2v'A$$+ $$\frac{\partial\, v'Av}{\partial\, v}=2Av=2v'A$$- em que $A$ é uma matriz simétrica. No nosso caso, $A=X'X$ e $v=\hat{\boldsymbol{\beta}}$.import marimo as mo- """- )+ em que $A$ é uma matriz simétrica. No nosso caso, $A=X'X$ e $v=\hat{\boldsymbol{\beta}}$.+ ///+ """)returndiff --git a/marimo/_smoke_tests/markdown/markdown_pymdownx.py b/marimo/_smoke_tests/markdown/markdown_pymdownx.pyindex 71b8a63151..aa84adcccf 100644--- a/marimo/_smoke_tests/markdown/markdown_pymdownx.py+++ b/marimo/_smoke_tests/markdown/markdown_pymdownx.py@@ -1,245 +1,222 @@import marimo-__generated_with = "0.15.5"+__generated_with = "0.19.6"app = marimo.App(width="medium")@app.celldef _(mo):- mo.md(- r"""- ## Task List-- - item- - [X] item 1- * [X] item A- * [ ] item B- more text- + [x] item a- + [ ] item b- + [x] item c- * [X] item C- * non item- - [ ] item 2- - [ ] item 3- """- )+ mo.md(r"""+ ## Task List++ - item+ - [X] item 1+ * [X] item A+ * [ ] item B+ more text+ + [x] item a+ + [ ] item b+ + [x] item c+ * [X] item C+ * non item+ - [ ] item 2+ - [ ] item 3+ """)return@app.celldef _(mo):- mo.md(- r"""- ## Base 64+ mo.md(r"""+ ## Base 64- - """- )+ + """)return@app.celldef _(mo):- mo.md(- r"""- ## Admonitions-- !!! important ""- This is an admonition box without a title.- """- )+ mo.md("""+ ## Admonitions++ /// important |+ This is an admonition box without a title.+ ///+ """)return@app.celldef _(mo):- mo.md(- r"""- ## Caption-- Fruit | Amount- ---------- | ------- Apple | 20- Peach | 10- Banana | 3- Watermelon | 1-- /// caption- Fruit Count- ///- """- )+ mo.md(r"""+ ## Caption++ Fruit | Amount+ ---------- | ------+ Apple | 20+ Peach | 10+ Banana | 3+ Watermelon | 1++ /// caption+ Fruit Count+ ///+ """)return@app.celldef _(mo):- mo.md(- r"""- ## Tabs-- /// tab | Tab 1 title- Tab 1 content- ///-- /// tab | Tab 2 title- Tab 2 content- ///- """- )+ mo.md(r"""+ ## Tabs++ /// tab | Tab 1 title+ Tab 1 content+ ///++ /// tab | Tab 2 title+ Tab 2 content+ ///+ """)return@app.celldef _(mo):- mo.md(- """- ## Details+ mo.md("""+ ## Details- /// details | Basic details- This is a basic details section- ///+ /// details | Basic details+ This is a basic details section+ ///- /// details | Info details- type: info+ /// details | Info details+ type: info- This shows important information- ///+ This shows important information+ ///- /// details | Warning details- type: warn+ /// details | Warning details+ type: warn- This highlights something to watch out for- ///+ This highlights something to watch out for+ ///- /// details | Danger details- type: danger+ /// details | Danger details+ type: danger- This indicates a critical warning or dangerous situation- ///+ This indicates a critical warning or dangerous situation+ ///- /// details | Success details- type: success+ /// details | Success details+ type: success- This indicates a successful outcome or positive note- ///- """- )+ This indicates a successful outcome or positive note+ ///+ """)return@app.celldef _(mo):- mo.md(- r"""- ## Nested em+ mo.md(r"""+ ## Nested em- This * won't emphasize *+ This * won't emphasize *- This *will emphasize*+ This *will emphasize*- ***I'm italic and bold* I am just bold.**+ ***I'm italic and bold* I am just bold.**- ***I'm bold and italic!** I am just italic.*- """- )+ ***I'm bold and italic!** I am just italic.*+ """)return@app.celldef _(mo):- mo.md(- r"""- ## Critic+ mo.md(r"""+ ## Critic- Here is some {--*incorrect*--} Markdown. I am adding this{++ here++}. Here is some more {--text- that I am removing--}text. And here is even more {++text that I- am ++}adding.{~~+ Here is some {--*incorrect*--} Markdown. I am adding this{++ here++}. Here is some more {--text+ that I am removing--}text. And here is even more {++text that I+ am ++}adding.{~~- ~> ~~}Paragraph was deleted and replaced with some spaces.{~~ ~>+ ~> ~~}Paragraph was deleted and replaced with some spaces.{~~ ~>- ~~}Spaces were removed and a paragraph was added.+ ~~}Spaces were removed and a paragraph was added.- And here is a comment on {==some- text==}{>>This works quite well. I just wanted to comment on it.<<}. Substitutions {~~is~>are~~} great!+ And here is a comment on {==some+ text==}{>>This works quite well. I just wanted to comment on it.<<}. Substitutions {~~is~>are~~} great!- General block handling.+ General block handling.- {--+ {--+ * test remove+ * test remove+ * test remove* test remove- * test remove- * test remove- * test remove- * test remove+ * test remove- --}+ --}- {+++ {+++ * test add+ * test add+ * test add* test add- * test add- * test add- * test add- * test add+ * test add- ++}- """- )+ ++}+ """)return@app.celldef _(mo):- mo.md(- r"""- ## Emoji+ mo.md(r"""+ ## Emoji- :smile: :heart: :thumbsup:- """- )+ :smile: :heart: :thumbsup:+ """)return@app.celldef _(mo):- mo.md(- r"""- ## Keys+ mo.md(r"""+ ## Keys- ++ctrl+alt+delete++- """- )+ ++ctrl+alt+delete+++ """)return@app.celldef _(mo):- mo.md(- r"""- ## Magic link-- - Just paste links directly in the document like this: https://google.com.- - Or even an email address: [email protected].- """- )+ mo.md(r"""+ ## Magic link++ - Just paste links directly in the document like this: https://google.com.+ - Or even an email address: [email protected].+ """)return@app.celldef _(mo):- mo.md(- r"""- ## Subscripts and strikethrough+ mo.md(r"""+ ## Subscripts and strikethrough- ~~Delete me~~+ ~~Delete me~~- CH~3~CH~2~OH+ CH~3~CH~2~OH- text~a\ subscript~- """- )+ text~a\ subscript~+ """)return