codemirror-lang-glimdown
v0.0.4
Published
This is a CodeMirror 6 plugin that adds support for Glimdown (markdown with glimmer and glimmer-js embedded support).
Downloads
85
Readme
CodeMirror Glimdown
This is a CodeMirror 6 plugin that adds support for Glimdown (markdown with glimmer and glimmer-js embedded support).
Usage
import { EditorState } from '@codemirror/state';
import { EditorView } from '@codemirror/view';
import { glimdown } from 'codemirror-lang-glimdown';
import { basicSetup } from 'codemirror';
new EditorView({
state: EditorState.create({
doc: `<script>let a = "hello world";</script> <div>{a}</div>`,
extensions: [basicSetup, glimdown()],
}),
parent: document.querySelector('#editor'),
});