Skip to content

Commit 04f4870

Browse files
author
Ty
committed
Fix line highlighting capitalization issue
1 parent f21b93c commit 04f4870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default async ({ markdownAST }, options = {}) => {
131131
const $ = cheerio.load(content.div);
132132
const file = query.file.replace(/[^a-zA-Z0-9_]+/, "-");
133133
query.highlights.forEach(line => {
134-
$(`#file-${file}-LC${line}`).addClass("highlighted");
134+
$(`#file-${file.toLowerCase()}-LC${line}`).addClass("highlighted");
135135
});
136136

137137
html = $.html();

0 commit comments

Comments
 (0)