Skip to content

Commit a5adec4

Browse files
committed
bugfix: fixed the style of the code block
Signed-off-by: skoowu <skoowu.fancy@gmail.com>
1 parent 4030ec2 commit a5adec4

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

app/medup/src-tauri/tauri.conf.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"build": {
33
"beforeDevCommand": "",
44
"beforeBuildCommand": "",
5-
"devPath": "../src",
6-
"distDir": "../src",
5+
"devPath": "http://localhost:8181/",
6+
"distDir": "http://localhost:8181/",
77
"withGlobalTauri": true
88
},
99
"package": {

src/html.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ struct ImageContext<'image_context> {
420420

421421
// code block
422422
const TP_CODE_NAME: &str = "code_block";
423-
const TP_CODE: &str = "<pre><code>\
423+
const TP_CODE: &str = "<pre><code>
424424
{text}\
425425
</code></pre>";
426426

themes/notion/notion-light-enhanced.css

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -381,17 +381,17 @@ table tr td:last-child {
381381
}
382382

383383
pre {
384-
padding: 16px;
385-
overflow: auto;
386-
font-size: 85%;
387-
line-height: 1.45;
388-
background-color: var(--code-fence-bg-color);
389-
border-radius: 6px;
390-
margin-top: 0;
391-
margin-bottom: 16px;
392-
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
393-
Liberation Mono, monospace;
394-
word-wrap: normal;
384+
padding: 16px;
385+
overflow: auto;
386+
font-size: 85%;
387+
line-height: 1.45;
388+
background-color: var(--code-fence-bg-color);
389+
border-radius: 6px;
390+
margin-top: 0;
391+
margin-bottom: 16px;
392+
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
393+
Liberation Mono, monospace;
394+
word-wrap: normal;
395395
}
396396

397397
pre code {
@@ -870,4 +870,4 @@ megamenu-back-btn {
870870

871871
.megamenu-menu-panel table tr:nth-child(2n + 1) {
872872
background-color: var(--side-bar-bg-color);
873-
}
873+
}

0 commit comments

Comments
 (0)