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.

improve: borderless markdown in html exports (#3052)

Akshay Agrawalf15e78705e35
diff --git a/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx b/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx
index c0c98b7d45..e1c0d7ad51 100644
--- a/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx
+++ b/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx
@@ -258,11 +258,13 @@ const VerticalCell = memo(
// Kiosk and not presenting
const kioskFull = kiosk && mode !== "present";
+ const isPureMarkdown = new MarkdownLanguageAdapter().isSupported(code);
const className = cn("Cell", "hover-actions-parent empty:invisible", {
published: !showCode && !kioskFull,
interactive: mode === "edit",
"has-error": errored,
stopped: stopped,
+ borderless: isPureMarkdown,
});
const HTMLId = HTMLCellId.create(cellId);
@@ -280,7 +282,6 @@ const VerticalCell = memo(
);
const isCodeEmpty = code.trim() === "";
- const isPureMarkdown = new MarkdownLanguageAdapter().isSupported(code);
return (
<div tabIndex={-1} id={HTMLId} ref={cellRef} className={className}>