mirror of
https://github.com/heyman/heynote.git
synced 2024-11-21 23:43:22 +01:00
Remove old, unused file
This commit is contained in:
parent
fa643a46f4
commit
77ed45cfa2
@ -1,29 +0,0 @@
|
||||
import { syntaxTree } from "@codemirror/language"
|
||||
|
||||
import { HeynoteEditor } from "./editor.js"
|
||||
import initialData from "./fixture.js"
|
||||
|
||||
let editor = new HeynoteEditor({
|
||||
element: document.getElementById("editor"),
|
||||
content: initialData,
|
||||
})
|
||||
|
||||
/*// render syntax tree
|
||||
setTimeout(() => {
|
||||
function render(tree) {
|
||||
let lists = ''
|
||||
tree.iterate({
|
||||
enter(type) {
|
||||
lists += `<ul><li>${type.name} (${type.from},${type.to})`
|
||||
},
|
||||
leave() {
|
||||
lists += '</ul>'
|
||||
}
|
||||
})
|
||||
return lists
|
||||
}
|
||||
let html = render(syntaxTree(editor.state))
|
||||
document.getElementById("syntaxTree").innerHTML = html;
|
||||
}, 1000)
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user