codemirror-lang-markdoc
v0.1.4
Published
implement is extends from `liquid` and remove some functionality
Downloads
18
Readme
codemirror-lang-markdoc
implement is extends from liquid
and remove some functionality
V6
import { EditorView } from "@codemirror/view";
import { markdoc } from "codemirror-lang-markdoc";
new EditorView({
extensions: [
markdoc({
markdoc: {}, // Markdoc Config
completion: {},
}),
],
});
V6 Legacy V5
import { EditorView } from "@codemirror/view";
import { markdoc } from "codemirror-lang-markdoc/v5";
import { StreamLanguage } from "@codemirror/language";
new EditorView({
extensions: [
StreamLanguage.define(
markdoc({
markdoc: {}, // Markdoc Config
completion: {},
})
),
],
});