mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
markdown-it: add margin for number emoji
This commit is contained in:
parent
fad6003660
commit
155199ed49
@ -99,6 +99,9 @@ if (VMarkdownitOption.metadata) {
|
||||
|
||||
if (VMarkdownitOption.emoji) {
|
||||
mdit = mdit.use(window.markdownitEmoji);
|
||||
mdit.renderer.rules.emoji = function(token, idx) {
|
||||
return '<span class="emoji emoji_' + token[idx].markup + '">' + token[idx].content + '</span>';
|
||||
};
|
||||
}
|
||||
|
||||
mdit = mdit.use(window.markdownitFootnote);
|
||||
|
@ -218,6 +218,11 @@ div.img-caption {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.emoji_zero,.emoji_one,.emoji_two,.emoji_three,.emoji_four,.emoji_five,.emoji_six,.emoji_seven,.emoji_eight,.emoji_nine {
|
||||
margin-left: 5px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
/* For Highlight.js Line Number */
|
||||
table.hljs-ln tr {
|
||||
border: none;
|
||||
|
@ -9,7 +9,7 @@ mdhl_file=v_detorte.mdhl
|
||||
css_file=v_detorte.css
|
||||
codeblock_css_file=v_detorte_codeblock.css
|
||||
mermaid_css_file=v_detorte_mermaid.css
|
||||
version=3
|
||||
version=4
|
||||
|
||||
; This mapping will be used to translate colors when the content of HTML is copied
|
||||
; without background. You could just specify the foreground colors mapping here.
|
||||
|
@ -213,6 +213,11 @@ div.img-caption {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.emoji_zero,.emoji_one,.emoji_two,.emoji_three,.emoji_four,.emoji_five,.emoji_six,.emoji_seven,.emoji_eight,.emoji_nine {
|
||||
margin-left: 5px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
/* For Highlight.js Line Number */
|
||||
table.hljs-ln tr {
|
||||
border: none;
|
||||
|
@ -7,7 +7,7 @@ mdhl_file=v_moonlight.mdhl
|
||||
css_file=v_moonlight.css
|
||||
codeblock_css_file=v_moonlight_codeblock.css
|
||||
mermaid_css_file=v_moonlight_mermaid.css
|
||||
version=14
|
||||
version=15
|
||||
|
||||
; This mapping will be used to translate colors when the content of HTML is copied
|
||||
; without background. You could just specify the foreground colors mapping here.
|
||||
|
@ -212,6 +212,11 @@ div.img-caption {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.emoji_zero,.emoji_one,.emoji_two,.emoji_three,.emoji_four,.emoji_five,.emoji_six,.emoji_seven,.emoji_eight,.emoji_nine {
|
||||
margin-left: 5px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
/* For Highlight.js Line Number */
|
||||
table.hljs-ln tr {
|
||||
border: none;
|
||||
|
@ -7,7 +7,7 @@ mdhl_file=v_native.mdhl
|
||||
css_file=v_native.css
|
||||
codeblock_css_file=v_native_codeblock.css
|
||||
mermaid_css_file=v_native_mermaid.css
|
||||
version=12
|
||||
version=13
|
||||
|
||||
[phony]
|
||||
; Abstract color attributes.
|
||||
|
@ -213,6 +213,11 @@ div.img-caption {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.emoji_zero,.emoji_one,.emoji_two,.emoji_three,.emoji_four,.emoji_five,.emoji_six,.emoji_seven,.emoji_eight,.emoji_nine {
|
||||
margin-left: 5px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
/* For Highlight.js Line Number */
|
||||
table.hljs-ln tr {
|
||||
border: none;
|
||||
|
@ -7,7 +7,7 @@ mdhl_file=v_pure.mdhl
|
||||
css_file=v_pure.css
|
||||
codeblock_css_file=v_pure_codeblock.css
|
||||
mermaid_css_file=v_pure_mermaid.css
|
||||
version=13
|
||||
version=14
|
||||
|
||||
[phony]
|
||||
; Abstract color attributes.
|
||||
|
Loading…
x
Reference in New Issue
Block a user