Skip to content

Commit

Permalink
⚡ (LaTeX) Improve scrolling performance and expand LaTeX support
Browse files Browse the repository at this point in the history
  • Loading branch information
djmango committed Apr 6, 2024
1 parent bc1bf90 commit f5b57bf
Show file tree
Hide file tree
Showing 12 changed files with 49 additions and 19 deletions.
Binary file modified Invisibility.app/Contents/CodeResources
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions Invisibility.app/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.0.11</string>
<string>2.0.12</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
Expand All @@ -42,7 +42,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>88</string>
<string>89</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
Expand Down
Binary file modified Invisibility.app/Contents/MacOS/Invisibility
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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',
Expand All @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions Invisibility.app/Contents/_CodeSignature/CodeResources
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
</data>
<key>Resources/markdown-webview_MarkdownWebView.bundle/Contents/Resources/template</key>
<data>
tvsF/0P2wJPfmPCawyLwOrfBTPw=
b/LIGwoYeeVrXWEyc8wJovDq4/I=
</data>
<key>Resources/screenshot.mp4</key>
<data>
Expand Down Expand Up @@ -465,7 +465,7 @@
<dict>
<key>hash2</key>
<data>
tUynAbX2VNE4MKWaSF+zidw+XWbhj6Ame3F1aHNtXBg=
IhOy7EdFM7DCdvxi135ZZ6BNLatsp00nRQF8H1mrOAY=
</data>
</dict>
<key>Resources/screenshot.mp4</key>
Expand Down
22 changes: 11 additions & 11 deletions appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">
<channel>
<title>Invisibility</title>
<item>
<title>2.0.12</title>
<pubDate>Sat, 06 Apr 2024 17:48:41 -0400</pubDate>
<sparkle:version>89</sparkle:version>
<sparkle:shortVersionString>2.0.12</sparkle:shortVersionString>
<sparkle:minimumSystemVersion>14.0</sparkle:minimumSystemVersion>
<enclosure
url="https://github.com/InvisibilityInc/Invisibility/releases/download/2.0.12/Invisibility.Installer.dmg"
length="21770319" type="application/octet-stream"
sparkle:edSignature="lswnh0aaoD95mAVtcF9ja/4eI4Q5jpL1m23ZA3MQfgXfiieJEHIA/vf1rG1An2YnVxsUm/r2Nu6dbsROnfiSDw==" />
</item>
<item>
<title>2.0.11</title>
<pubDate>Thu, 04 Apr 2024 23:01:07 -0400</pubDate>
Expand All @@ -24,16 +35,5 @@
length="21569573" type="application/octet-stream"
sparkle:edSignature="YvYvLAZIgj63dhAiP4LVBDkXAi/T8Sw6g/pCWnSxTzjanR9yzPQQGPx8KL9XzNlt0+Gv2CIEVqo/ALapHcOVCw==" />
</item>
<item>
<title>2.0.9</title>
<pubDate>Thu, 04 Apr 2024 00:49:15 -0400</pubDate>
<sparkle:version>86</sparkle:version>
<sparkle:shortVersionString>2.0.9</sparkle:shortVersionString>
<sparkle:minimumSystemVersion>14.0</sparkle:minimumSystemVersion>
<enclosure
url="https://github.com/InvisibilityInc/Invisibility/releases/download/2.0.9/Invisibility.Installer.dmg"
length="21495156" type="application/octet-stream"
sparkle:edSignature="yRQ/PhWIGE+mpZZzNQpttv8VVoE3Nlck6Cj1LStUzXATQTqqDzZoMiZ/aHh/iWFFksvlKvTIXI/6dSyXhfIDBw==" />
</item>
</channel>
</rss>

0 comments on commit f5b57bf

Please sign in to comment.