We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5de419e commit 3c430f8Copy full SHA for 3c430f8
packages/@vuepress/markdown/lib/containers.js
@@ -11,6 +11,11 @@ module.exports = md => {
11
? `<div v-pre>\n`
12
: `</div>\n`
13
})
14
+ .use(container, 'vue', {
15
+ render: (tokens, idx) => tokens[idx].nesting === 1
16
+ ? `<pre class="vue-container"><code>`
17
+ : `</code></pre>`
18
+ })
19
}
20
21
function createContainer (klass, defaultTitle) {
packages/@vuepress/theme-default/styles/custom-blocks.styl
@@ -26,3 +26,15 @@
26
color darken(red, 40%)
27
a
28
color $textColor
29
+
30
+pre.vue-container
31
+ background-color: #f3f5f7 !important;
32
+ color: #2c3e50 !important;
33
+ border-left-width: .5rem;
34
+ border-left-style: solid;
35
+ border-color: #42b983;
36
+ code
37
38
+ font-size: 14px !important;
39
+ & > p
40
+ margin: -20px 0;
0 commit comments