Skip to content

Commit 311f108

Browse files
committed
bug: remove windows EOL when copying on windows machines
1 parent ec16637 commit 311f108

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docusaurus.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ const config = {
7373
themeConfig:
7474
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
7575
({
76+
customFields: {
77+
copyToClipboardTransform: (code) => code.replace(/\r/g, ''),
78+
},
7679
metadata: [
7780
{
7881
name: "keywords",

0 commit comments

Comments
 (0)