add alert note display
This commit is contained in:
@@ -4,6 +4,7 @@ import Renderer from 'markdown-it/lib/renderer'
|
||||
import blockEmbedPlugin from 'markdown-it-block-embed'
|
||||
import markdownItCheckbox from 'markdown-it-checkbox'
|
||||
import markdownItFootnote from 'markdown-it-footnote'
|
||||
import MarkdownItGitHubAlerts from 'markdown-it-github-alerts'
|
||||
import markdownItIframe from 'markdown-it-iframe'
|
||||
import markdownItLatex from 'markdown-it-latex'
|
||||
import Shikiji from 'markdown-it-shikiji'
|
||||
@@ -40,6 +41,7 @@ const md = new MarkdownIt({
|
||||
width: '100%',
|
||||
height: 400
|
||||
})
|
||||
.use(MarkdownItGitHubAlerts)
|
||||
|
||||
const useShikiji = async () => {
|
||||
const shikiji = await Shikiji({
|
||||
|
||||
@@ -5,13 +5,14 @@ $primary: #2c3a47;
|
||||
$link: #445fb9;
|
||||
$light-link: lighten($link, 45%);
|
||||
$family-primary: "Courier Prime", monospace;
|
||||
$background: #ffffff;
|
||||
|
||||
:root {
|
||||
--primary-color: #{$primary};
|
||||
--font-family: #{$family-primary};
|
||||
--font-color: #4a4a4a;
|
||||
--light-link: #{$light-link};
|
||||
--background-color: #ffffff;
|
||||
--background-color: #{$background};
|
||||
--note-width: 620px;
|
||||
}
|
||||
|
||||
@@ -105,4 +106,11 @@ pre {
|
||||
|
||||
code {
|
||||
font-family: var(--font-family);
|
||||
}
|
||||
|
||||
.markdown-alert {
|
||||
padding: 1rem;
|
||||
background-color: #ecf0f1;
|
||||
border-radius: 1rem;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
Reference in New Issue
Block a user