@@ -5,6 +5,7 @@ import { CollapsibleContent, CollapsibleRoot, CollapsibleTrigger, ScrollAreaRoot
55import { useData , withBase } from ' vitepress'
66import { ref } from ' vue'
77import { useCurrentModule } from ' ../composables/useCurrentModule'
8+ import { renderMarkdown } from ' ../lib/html-renderer'
89import { isActive } from ' ../lib/route'
910import CommandMenu from ' ./CommandMenu.vue'
1011import Logo from ' ./Logo.vue'
@@ -76,7 +77,7 @@ function openAccordionInitialState(items: NimiqVitepressSidebar['items'][number]
7677 <a :href =" withBase(link!)" class =" sidebar-item" :data-state =" isActive(page.relativePath, link) ? 'active' : ''" data-active:font-bold transition-all data-active:text-blue data-active:bg-blue-400 group :class =" { 'nq-arrow after:op-70 hocus:after:op-100': isExternalLink(link!) }" transition-opacity :target =" isExternalLink(link!) ? '_blank' : undefined" >
7778 <div v-if =" isActive(page.relativePath, link)" aria-hidden absolute inset-y-0 bg-blue op-70 rounded-full w-2 z-2 transition-colors left =" 0 [[data-state=open]_& ]:12" />
7879 <div v-if =" icon" :class =" icon" f-text-sm text =" neutral data-active:blue" op =" 70 group-hocus:100" transition-opacity mr-8 shrink-0 />
79- <span flex-1 >{{ text }}</ span >
80+ <span flex-1 v-html = " renderMarkdown( text) " / >
8081 </a >
8182 </DefineSidebarItem >
8283 <ScrollAreaRoot relative of-hidden bg-neutral-100 var:scrollbar-size:10px as =" nav" flex-1 f-px-xs v-bind =" $attrs" >
@@ -92,7 +93,7 @@ function openAccordionInitialState(items: NimiqVitepressSidebar['items'][number]
9293 <CollapsibleTrigger class =" sidebar-item" group pr-12 pl-8 bg-transparent >
9394 <div v-if =" subitem.icon" :class =" subitem.icon" f-text-sm text-neutral op =" 70 group-hocus:100" mr-8 />
9495 <div :class =" subitem.text" op =" 80 group-hocus:100" transition-opacity />
95- <span flex-1 text-left >{{ subitem.text }}</ span >
96+ <span flex-1 text-left v-html = " subitem.text" / >
9697 <div
9798 i-nimiq:chevron-down aria-hidden text =" 9 neutral-700 group-hocus:neutral-800"
9899 transition =" [color,transform]" :class =" { 'rotate--90': !open }"
0 commit comments