From a04074a2b59803c67886f6d69f8e38130a1bfeda Mon Sep 17 00:00:00 2001 From: Farnabaz Date: Thu, 14 Oct 2021 15:37:55 +0330 Subject: [PATCH] fix: handle mapped tags in `` close #75 --- src/module.ts | 4 +++- src/runtime/components/Markdown.vue | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/module.ts b/src/module.ts index 551bf5702..c13f3a419 100644 --- a/src/module.ts +++ b/src/module.ts @@ -83,7 +83,9 @@ export default defineNuxtModule((nuxt: Nuxt) => ({ // Set publicRuntimeConfig $docus key ;(nuxt.options.publicRuntimeConfig as any).$docus = { - apiBase: options.apiBase + apiBase: options.apiBase, + // `tagMap` will use in `` to unwrap tags + tagMap: docusContext.transformers.markdown.tagMap } // Add Docus runtime plugin diff --git a/src/runtime/components/Markdown.vue b/src/runtime/components/Markdown.vue index f1023bbc1..696fa5351 100644 --- a/src/runtime/components/Markdown.vue +++ b/src/runtime/components/Markdown.vue @@ -1,5 +1,5 @@