We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c947b2 commit 6f52012Copy full SHA for 6f52012
packages/@vuepress/markdown-loader/index.js
@@ -102,7 +102,16 @@ module.exports = function (src) {
102
`<template>\n` +
103
`<ContentSlotsDistributor :slot-key="slotKey">${html}</ContentSlotsDistributor>\n` +
104
`</template>\n` +
105
- `<script>export default { props: ['slot-key'] }</script>` +
+ `<script>
106
+ export default {
107
+ props: ['slot-key'],
108
+ mounted() {
109
+ this.$nextTick(function () {
110
+ this.$vuepress.$emit('AsyncMarkdownContentLoaded', this.slotKey)
111
+ })
112
+ }
113
114
+ </script>` +
115
(hoistedTags || []).join('\n') +
116
`\n${dataBlockString}\n`
117
)
0 commit comments