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 a732814 commit 8e81728Copy full SHA for 8e81728
src/remark/index.ts
@@ -99,7 +99,7 @@ export default function remarkResistogram(options: { dataDir?: string, files?: a
99
for (let i = nodesToProcess.length - 1; i >= 0; i--) {
100
const { node, index, parent } = nodesToProcess[i];
101
const text = toString(node);
102
- const regex = /%%RESIST\s+([^%]*)%%/;
+ const regex = /%%RESIST\s*([^%]*)%%/g;
103
const match = text.match(regex);
104
105
if (!match || match.index === undefined) continue;
0 commit comments