Skip to content

Commit f4436b0

Browse files
authored
fix: simplify markdown (#7005)
## 📝 Summary Simplifies markdown logic from separating multiline and single line cases to always using multiline. This mitigates a breaking bug in 0.17.3 where long single lines had a spurious `"` resulting in an unparsable notebook.
1 parent 8904377 commit f4436b0

File tree

93 files changed

+660
-354
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+660
-354
lines changed

examples/ai/chat/anthropic_example.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import marimo
1010

11-
__generated_with = "0.17.2"
11+
__generated_with = "0.17.4"
1212
app = marimo.App(width="medium")
1313

1414

@@ -74,9 +74,9 @@ def _(key, mo):
7474

7575
@app.cell
7676
def _(mo):
77-
mo.md(
78-
"""Access the chatbot's historical messages with [`chatbot.value`](https://docs.marimo.io/api/inputs/chat.html#accessing-chat-history)."""
79-
)
77+
mo.md("""
78+
Access the chatbot's historical messages with [`chatbot.value`](https://docs.marimo.io/api/inputs/chat.html#accessing-chat-history).
79+
""")
8080
return
8181

8282

examples/ai/chat/bedrock_example.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import marimo
1111

12-
__generated_with = "0.17.2"
12+
__generated_with = "0.17.4"
1313
app = marimo.App(width="medium")
1414

1515

@@ -160,7 +160,9 @@ def _(mo):
160160

161161
@app.cell
162162
def _(mo):
163-
mo.md(r"""## AWS Bedrock Chat""")
163+
mo.md(r"""
164+
## AWS Bedrock Chat
165+
""")
164166
return
165167

166168

examples/ai/chat/custom.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import marimo
99

10-
__generated_with = "0.17.2"
10+
__generated_with = "0.17.4"
1111
app = marimo.App(width="medium")
1212

1313

@@ -51,7 +51,9 @@ def simple_echo_model(messages, config):
5151

5252
@app.cell
5353
def _(mo):
54-
mo.md("""Access the chatbot's historical messages with `chatbot.value`.""")
54+
mo.md("""
55+
Access the chatbot's historical messages with `chatbot.value`.
56+
""")
5557
return
5658

5759

examples/ai/chat/deepseek_example.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import marimo
1010

11-
__generated_with = "0.17.2"
11+
__generated_with = "0.17.4"
1212
app = marimo.App(width="medium")
1313

1414

@@ -86,9 +86,9 @@ def _(key, mo):
8686

8787
@app.cell(hide_code=True)
8888
def _(mo):
89-
mo.md(
90-
"""Access the chatbot's historical messages with [`chatbot.value`](https://docs.marimo.io/api/inputs/chat.html#accessing-chat-history)."""
91-
)
89+
mo.md("""
90+
Access the chatbot's historical messages with [`chatbot.value`](https://docs.marimo.io/api/inputs/chat.html#accessing-chat-history).
91+
""")
9292
return
9393

9494

examples/ai/chat/gemini.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import marimo
99

10-
__generated_with = "0.17.2"
10+
__generated_with = "0.17.4"
1111
app = marimo.App(width="medium")
1212

1313

@@ -68,9 +68,9 @@ def _(key, mo):
6868

6969
@app.cell(hide_code=True)
7070
def _(mo):
71-
mo.md(
72-
"""Access the chatbot's historical messages with [`chatbot.value`](https://docs.marimo.io/api/inputs/chat.html#accessing-chat-history)."""
73-
)
71+
mo.md("""
72+
Access the chatbot's historical messages with [`chatbot.value`](https://docs.marimo.io/api/inputs/chat.html#accessing-chat-history).
73+
""")
7474
return
7575

7676

examples/ai/chat/groq_example.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import marimo
1010

11-
__generated_with = "0.17.2"
11+
__generated_with = "0.17.4"
1212
app = marimo.App(width="medium")
1313

1414

@@ -86,9 +86,9 @@ def _(key, mo):
8686

8787
@app.cell(hide_code=True)
8888
def _(mo):
89-
mo.md(
90-
"""Access the chatbot's historical messages with [`chatbot.value`](https://docs.marimo.io/api/inputs/chat.html#accessing-chat-history)."""
91-
)
89+
mo.md("""
90+
Access the chatbot's historical messages with [`chatbot.value`](https://docs.marimo.io/api/inputs/chat.html#accessing-chat-history).
91+
""")
9292
return
9393

9494

examples/ai/chat/llm_datasette.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,23 @@
88

99
import marimo
1010

11-
__generated_with = "0.15.5"
11+
__generated_with = "0.17.4"
1212
app = marimo.App()
1313

1414

1515
@app.cell(hide_code=True)
1616
def _(mo):
17-
mo.md(r"""## Using <https://llm.datasette.io> with `mo.ui.chat()`""")
17+
mo.md(r"""
18+
## Using <https://llm.datasette.io> with `mo.ui.chat()`
19+
""")
1820
return
1921

2022

2123
@app.cell(hide_code=True)
2224
def _(mo):
23-
mo.md("""To set a key, run: `llm keys set openai` in your terminal""")
25+
mo.md("""
26+
To set a key, run: `llm keys set openai` in your terminal
27+
""")
2428
return
2529

2630

examples/ai/chat/mlx_chat.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import marimo
1111

12-
__generated_with = "0.17.2"
12+
__generated_with = "0.17.4"
1313
app = marimo.App(width="medium")
1414

1515

@@ -192,7 +192,9 @@ def mlx_chat_model(messages, config):
192192

193193
@app.cell(hide_code=True)
194194
def _(mo):
195-
mo.md("""Access the chatbot's historical messages with `chatbot.value`.""")
195+
mo.md("""
196+
Access the chatbot's historical messages with `chatbot.value`.
197+
""")
196198
return
197199

198200

examples/ai/chat/openai_example.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import marimo
1010

11-
__generated_with = "0.17.2"
11+
__generated_with = "0.17.4"
1212
app = marimo.App(width="medium")
1313

1414

@@ -73,9 +73,9 @@ def _(mo, openai_key):
7373

7474
@app.cell
7575
def _(mo):
76-
mo.md(
77-
"""Access the chatbot's historical messages with [`chatbot.value`](https://docs.marimo.io/api/inputs/chat.html#accessing-chat-history)."""
78-
)
76+
mo.md("""
77+
Access the chatbot's historical messages with [`chatbot.value`](https://docs.marimo.io/api/inputs/chat.html#accessing-chat-history).
78+
""")
7979
return
8080

8181

examples/ai/chat/simplemind_example.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88

99
import marimo
1010

11-
__generated_with = "0.17.2"
11+
__generated_with = "0.17.4"
1212
app = marimo.App(width="full")
1313

1414

1515
@app.cell(hide_code=True)
1616
def _(mo):
17-
mo.md(
18-
r"""## Using [simplemind](https://github.com/kennethreitz/simplemind) with `mo.ui.chat()`"""
19-
)
17+
mo.md(r"""
18+
## Using [simplemind](https://github.com/kennethreitz/simplemind) with `mo.ui.chat()`
19+
""")
2020
return
2121

2222

0 commit comments

Comments
 (0)