fix codemirror
This commit is contained in:
parent
a1c4464fdc
commit
c9741b235e
2 changed files with 9 additions and 59 deletions
|
|
@ -29,14 +29,18 @@
|
|||
}
|
||||
</script>
|
||||
<script type="module" type="application/javascript">
|
||||
globalThis.cm = await import('codemirror');
|
||||
globalThis.lc = await import('@nextjournal/lang-clojure');
|
||||
globalThis.cv = await import('@codemirror/view');
|
||||
globalThis.cs = await import('@codemirror/state')
|
||||
import * as cm from 'codemirror';
|
||||
import * as lc from '@nextjournal/lang-clojure'
|
||||
import * as cv from '@codemirror/view';
|
||||
import * as cs from '@codemirror/state';
|
||||
globalThis.cm = cm;
|
||||
globalThis.lc = lc;
|
||||
globalThis.cv = cv;
|
||||
globalThis.cs = cs;
|
||||
scittle.core.eval_script_tags();
|
||||
</script>
|
||||
|
||||
<script type="application/x-scittle" src="codemirror.cljs"></script>
|
||||
<script type="application/x-scittle" src="cljs/codemirror.cljs"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Using <a href="https://www.npmjs.com/package/@nextjournal/lang-clojure">@nextjournal/lang-clojure</a> directly from npm in HTML!</h1>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue