Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
Temporary fix for line highlight plugin offset (#40)
Browse files Browse the repository at this point in the history
Temporary fix for line highlight plugin offset until it's fixed by upstream.
Fixes #27
Upstream PR PrismJS/prism#2237
  • Loading branch information
siavashs committed May 31, 2020
1 parent fecd0ca commit aa6f613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/js/prism.js
Expand Up @@ -13873,7 +13873,7 @@ Prism.languages.xojo = {
var endNode = Prism.plugins.lineNumbers.getLine(pre, end);

if (startNode) {
var top = startNode.offsetTop + 'px';
var top = startNode.offsetTop - offset * lineHeight + 'px';
mutateActions.push(function () {
line.style.top = top;
});
Expand Down

0 comments on commit aa6f613

Please sign in to comment.