Skip to content

Commit

Permalink
fix: mark padding
Browse files Browse the repository at this point in the history
Change-Id: I0c7c84c17fbe73e08d6476a8836e847b55d41efc
  • Loading branch information
elonz committed Jun 26, 2021
1 parent 6bab08b commit e130e55
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion example.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ _这些文字会生成`<u>`_
**这些文字会生成`<strong>`**
__这些文字会生成`<strong>`__

==这些文字会生成`<mark>`==
<mark>这些文字会生成`<mark>`</mark>

## 换行

Expand Down
1 change: 1 addition & 0 deletions src/themes/core/mweb-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ code, kbd, tt, samp {
}

mark {
padding: 0.2em 0;
background-color: $mark-bg-color;
}

Expand Down
1 change: 1 addition & 0 deletions src/themes/core/typora-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ code, kbd, tt, samp {
}

mark {
padding: 0.2em 0;
background-color: $mark-bg-color;
}

Expand Down
1 change: 1 addition & 0 deletions src/themes/variables/lark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ $primary-color: #3370ff;
$accent-color: rgb(36, 91, 219); // 粗体的颜色
$border-color: #dee0e3;
$code-bg-color: #f5f6f7;
$mark-bg-color: rgba(255, 246, 122, 0.8);

/* prism & pre */
$prism-font-size: 14px;
Expand Down

0 comments on commit e130e55

Please sign in to comment.