bedazzlr 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -3
- package/package.json +2 -3
package/lib/index.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { spam as m } from '@bablr/boot';
|
|
4
4
|
import emptyStack from '@iter-tools/imm-stack';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
|
-
import * as cstml from '@bablr/language-en-cstml';
|
|
7
6
|
import { streamParse } from 'bablr';
|
|
8
7
|
|
|
9
8
|
import { CloseNodeTag, LiteralTag, OpenNodeTag, ReferenceTag } from '@bablr/agast-helpers/symbols';
|
|
@@ -70,8 +69,8 @@ export const removeDocumentListeners = () => {
|
|
|
70
69
|
}
|
|
71
70
|
};
|
|
72
71
|
|
|
73
|
-
export const highlightCode = (el) => {
|
|
74
|
-
let tags = streamParse(
|
|
72
|
+
export const highlightCode = (language, el) => {
|
|
73
|
+
let tags = streamParse(language, m`<Document />`, el.innerText)[Symbol.iterator]();
|
|
75
74
|
|
|
76
75
|
let open;
|
|
77
76
|
let referenceTag = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bedazzlr",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Code block syntax highlighting using BABLR",
|
|
5
5
|
"author": "Conrad Buck<conartist6@gmail.com>",
|
|
6
6
|
"type": "module",
|
|
@@ -18,9 +18,8 @@
|
|
|
18
18
|
"@bablr/agast-helpers": "0.9.0",
|
|
19
19
|
"@bablr/boot": "0.10.0",
|
|
20
20
|
"@bablr/helpers": "0.24.0",
|
|
21
|
-
"@bablr/language-en-cstml": "0.11.0",
|
|
22
21
|
"@iter-tools/imm-stack": "1.2.0",
|
|
23
|
-
"bablr": "0.10.
|
|
22
|
+
"bablr": "0.10.1",
|
|
24
23
|
"classnames": "2.5.1"
|
|
25
24
|
},
|
|
26
25
|
"devDependencies": {
|