Skip to content

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.

fix: markdown snapshots (#6990)

Dylan Madisetti27844c622bb7
diff --git a/marimo/_lint/rules/formatting/markdown_dedent.py b/marimo/_lint/rules/formatting/markdown_dedent.py
index bd0cf751eb..133bfd34fd 100644
--- a/marimo/_lint/rules/formatting/markdown_dedent.py
+++ b/marimo/_lint/rules/formatting/markdown_dedent.py
@@ -88,7 +88,7 @@ class MarkdownDedentRule(LintRule):
break
if not notebook_cell:
- return
+ continue
# Check if the markdown string needs dedenting
# Use tokenize like codegen does to extract quote style
diff --git a/tests/_convert/snapshots/pypercent_format.py.txt b/tests/_convert/snapshots/pypercent_format.py.txt
index 083dbe410a..dd4f247126 100644
--- a/tests/_convert/snapshots/pypercent_format.py.txt
+++ b/tests/_convert/snapshots/pypercent_format.py.txt
@@ -14,12 +14,10 @@ def _():
@app.cell(hide_code=True)
def _(mo):
- mo.md(
- r"""
+ mo.md(r"""
This is a markdown cell
with multiple lines
- """
- )
+ """)
return
diff --git a/tests/_convert/snapshots/pypercent_markdown_only.py.txt b/tests/_convert/snapshots/pypercent_markdown_only.py.txt
index f419e15935..aba2e90dd2 100644
--- a/tests/_convert/snapshots/pypercent_markdown_only.py.txt
+++ b/tests/_convert/snapshots/pypercent_markdown_only.py.txt
@@ -12,23 +12,19 @@ def _():
@app.cell(hide_code=True)
def _(mo):
- mo.md(
- r"""
+ mo.md(r"""
Introduction
This is a documentation file.
- """
- )
+ """)
return
@app.cell(hide_code=True)
def _(mo):
- mo.md(
- r"""
+ mo.md(r"""
Usage
Here's how to use this module.
- """
- )
+ """)
return