Skip to content

Commit

Permalink
Fix hljs usage
Browse files Browse the repository at this point in the history
  • Loading branch information
renkun-ken committed Sep 23, 2021
1 parent c0cfebc commit a407b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpViewer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ export class RHelp implements api.HelpPanel, vscode.WebviewPanelSerializer<strin

// apply syntax highlighting to each code section:
codeSections.each((i, section) => {
const styledCode = hljs.highlight('r', $(section).text() || '');
const styledCode = hljs.highlight($(section).text() || '', { language: 'r' });
$(section).html(styledCode.value);
});
}
Expand Down

0 comments on commit a407b43

Please sign in to comment.