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 04f4870 commit 82b4d33Copy full SHA for 82b4d33
src/index.js
@@ -129,7 +129,7 @@ export default async ({ markdownAST }, options = {}) => {
129
let html = content.div;
130
if (query.highlights.length > 0) {
131
const $ = cheerio.load(content.div);
132
- const file = query.file.replace(/[^a-zA-Z0-9_]+/, "-");
+ const file = query.file.replace(/[^a-zA-Z0-9_]+/g, "-");
133
query.highlights.forEach(line => {
134
$(`#file-${file.toLowerCase()}-LC${line}`).addClass("highlighted");
135
});
0 commit comments