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.
2 parents 4732962 + db1abcf commit dd18100Copy full SHA for dd18100
dist/remark/index.mjs
@@ -119,7 +119,7 @@ function remarkResistogram(options) {
119
for (let i = nodesToProcess.length - 1; i >= 0; i--) {
120
const { node: node2, index, parent } = nodesToProcess[i];
121
const text = toString(node2);
122
- const regex = /%%RESIST\s+([^%]*)%%/;
+ const regex = /%%RESIST\s*([^%]*)%%/g;
123
const match = text.match(regex);
124
if (!match || match.index === void 0) continue;
125
const beforeText = text.slice(0, match.index).trim();
0 commit comments