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 82b4d33 commit bba0efeCopy full SHA for bba0efe
src/index.js
@@ -129,9 +129,9 @@ 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_]+/g, "-");
+ const file = query.file.replace(/[^a-zA-Z0-9_]+/g, "-").toLowerCase();
133
query.highlights.forEach(line => {
134
- $(`#file-${file.toLowerCase()}-LC${line}`).addClass("highlighted");
+ $(`#file-${file}-LC${line}`).addClass("highlighted");
135
});
136
137
html = $.html();
0 commit comments