-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚡ (LaTeX) Improve scrolling performance and expand LaTeX support
- Loading branch information
Showing
12 changed files
with
49 additions
and
19 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Invisibility.app/Contents/Frameworks/Sentry.framework/Versions/A/Sentry
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Invisibility.app/Contents/Frameworks/Sparkle.framework/Versions/B/Autoupdate
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Invisibility.app/Contents/Frameworks/Sparkle.framework/Versions/B/Sparkle
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...y.app/Contents/Frameworks/Sparkle.framework/Versions/B/Updater.app/Contents/MacOS/Updater
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...meworks/Sparkle.framework/Versions/B/XPCServices/Downloader.xpc/Contents/MacOS/Downloader
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...rameworks/Sparkle.framework/Versions/B/XPCServices/Installer.xpc/Contents/MacOS/Installer
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,10 +30,36 @@ | |
#markdown-rendered>*:last-child { | ||
margin-bottom: 0 !important; | ||
} | ||
|
||
.code-block-wrapper { | ||
position: relative; | ||
} | ||
|
||
.copy-code-button { | ||
background-color: #f0f0f0; | ||
border: none; | ||
border-radius: 4px; | ||
font-size: 14px; | ||
cursor: pointer; | ||
opacity: 0; | ||
transition: opacity 0.2s ease-in-out; | ||
} | ||
|
||
.code-block-wrapper:hover .copy-code-button { | ||
opacity: 1; | ||
} | ||
|
||
.copy-code-button.copied { | ||
background-color: #4caf50; | ||
opacity: 0; | ||
transition: opacity 0.2s ease-in-out; | ||
} | ||
</style> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/texmath.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js"></script> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" rel="stylesheet"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/texmath.min.js"></script> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/css/texmath.min.css" rel="stylesheet"> | ||
</head> | ||
|
||
<body> | ||
|
@@ -59,7 +85,7 @@ | |
.use(window.markdownitTaskLists) | ||
.use(window.texmath, { | ||
engine: window.katex, | ||
delimiters: 'dollars', | ||
delimiters: ['dollars', 'brackets', 'doxygen', 'gitlab', 'julia', 'kramdown', 'beg_end'], | ||
katexOptions: { | ||
throwOnError: false, | ||
errorColor: '#cc0000', | ||
|
@@ -84,7 +110,11 @@ | |
button.addEventListener('click', async () => { | ||
window.webkit.messageHandlers.copyToPasteboard.postMessage(codeBlock.innerText); | ||
button.innerHTML = '<i class="fa-solid fa-check"></i>'; // Font Awesome check icon | ||
setTimeout(() => {button.innerHTML = '<i class="fa-regular fa-clone"></i>';}, 2000); | ||
button.classList.add('copied'); | ||
setTimeout(() => { | ||
button.innerHTML = '<i class="fa-regular fa-clone"></i>'; | ||
button.classList.remove('copied'); | ||
}, 2000); | ||
console.log(codeBlock.textContent); | ||
}); | ||
const wrapper = document.createElement('div'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters