We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 959b57b commit 45c27a3Copy full SHA for 45c27a3
lib/util/groupTextTokens.js
@@ -1,3 +1,6 @@
1
+import getIsTextType from './getIsTextType';
2
+import Token from "./Token";
3
+
4
class Stack {
5
constructor() {
6
this.data = [];
@@ -36,13 +39,13 @@ export default function groupTextTokens(tokens) {
36
39
}
37
40
} else {
38
41
if (currentStack.count > 1) {
- result.push(createToken('textgroup', 1));
42
+ result.push(new Token('textgroup', 1));
43
44
while (currentStack.data.length) {
45
result.push(currentStack.data.shift());
46
47
- result.push(createToken('textgroup', -1));
48
+ result.push(new Token('textgroup', -1));
49
} else if (currentStack.count === 1) {
50
51
0 commit comments