Skip to content

Commit

Permalink
disable copy plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mohdali committed Mar 31, 2024
1 parent 269cbdd commit 116a043
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
# Use NodeJS react-snap utitility to prerender static website
- name: prerender Blazor client
working-directory: Prerender
continue-on-error: true
run: npx react-snap

# change base tag in all html files to include subfolder
Expand Down
3 changes: 2 additions & 1 deletion src/BlogEngine/ClientLib/src/highlight-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import '../node_modules/highlight.js/styles/dark.css'
import '../node_modules/highlightjs-copy/dist/highlightjs-copy.min.css'

export function highlightCode() {
//hljs.addPlugin(CopyButtonPlugin);

document.querySelectorAll('pre code').forEach((el : HTMLElement) => {
hljs.highlightElement(el);
});
hljs.addPlugin(new CopyButtonPlugin());
}

0 comments on commit 116a043

Please sign in to comment.