mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-16 20:45:33 -08:00
Render Markdown live in every console answer box
AI Assisted
This commit is contained in:
1 parent
c26759fd88
commit
2acfd8907d
21 files changed
+598
-177
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user