Render Markdown live in every console answer box

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-03 03:59:50 -08:00
1 parent c26759fd88
commit 2acfd8907d
21 files changed
+598 -177

No files matched your search

+3 -2
View File
@@ -156,8 +156,9 @@ function build(view) {
}
// Redraws on what can change the picture: the text, the selection (which
// lines are active), the lines in view, and the parse catching up.
const livePreview = ViewPlugin.fromClass(
// lines are active), the lines in view, and the parse catching up. Exported:
// md-field.js puts the same live preview in every answer box.
export const livePreview = ViewPlugin.fromClass(
class {
constructor(view) {
this.decorations = build(view);