markdown-it: add margin for number emoji

This commit is contained in:
Le Tan 2018-06-30 22:16:07 +08:00
parent fad6003660
commit 155199ed49
9 changed files with 27 additions and 4 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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.

View File

@ -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;

View File

@ -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.

View File

@ -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;

View File

@ -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.

View File

@ -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;

View File

@ -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.