Skip to content

Commit 7bc17c2

Browse files
committed
Blog: Okay, I think the invisible copyable text issues are fixed
1 parent 66e69c2 commit 7bc17c2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

blog/src/plugins/rehype-mathjax-copy-svg/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const rehypeMathJaxSvg = createPlugin(function (options) {
2626
var [startDelim, endDelim] = math.display ? ["$$\n", "\n$$"] : ["$", "$"];
2727
var text = this.html(
2828
"mjx-copytext",
29-
{"aria-hidden": true, style: {"white-space": "pre"}},
29+
{"aria-hidden": true, style: {"white-space": "pre-wrap"}},
3030
[this.text(startDelim + this.math.math + endDelim)],
3131
);
3232
this.adaptor.append(this.container, text);

blog/src/styles/global.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,9 @@ mjx-container {
211211
scrollbar-width: thin;
212212
}
213213

214-
mjx-container [aria-hidden=true] {
214+
mjx-copytext {
215215
display: inline-block;
216216
position: absolute;
217-
left: 0;
218217

219218
width: 0;
220219
height: 0;

0 commit comments

Comments
 (0)