@@ -122,6 +122,12 @@ const displayVersion = computed(() => {
122122 return pkg .value .versions [latestTag ] ?? null
123123})
124124
125+ // Process package description
126+ const pkgDescription = useMarkdown (() => ({
127+ text: pkg .value ?.description ?? ' ' ,
128+ packageName: pkg .value ?.name ,
129+ }))
130+
125131// copy package name
126132const { copied : copiedPkgName, copy : copyPkgName } = useClipboard ({
127133 source: packageName ,
@@ -160,6 +166,10 @@ const deprecationNotice = computed(() => {
160166 return { type: ' version' as const , message: displayVersion .value .deprecated }
161167})
162168
169+ const deprecationNoticeMessage = useMarkdown (() => ({
170+ text: deprecationNotice .value ?.message ?? ' ' ,
171+ }))
172+
163173const sizeTooltip = computed (() => {
164174 const chunks = [
165175 displayVersion .value &&
@@ -506,9 +516,9 @@ function handleClick(event: MouseEvent) {
506516 <section class =" area-details" >
507517 <div class =" mb-4" >
508518 <!-- Description container with min-height to prevent CLS -->
509- <div class =" max-w-2xl ms-1 min-h-[4.5rem]" >
510- <p v-if =" pkg.description " class =" text-fg-muted text-base m-0" >
511- <MarkdownText :text = " pkg.description " :package-name = " pkg.name " />
519+ <div class =" max-w-2xl min-h-[4.5rem]" >
520+ <p v-if =" pkgDescription " class =" text-fg-muted text-base m-0" >
521+ <span v-html = " pkgDescription " />
512522 </p >
513523 <p v-else class =" text-fg-subtle text-base m-0 italic" >
514524 {{ $t('package.no_description') }}
@@ -713,8 +723,8 @@ function handleClick(event: MouseEvent) {
713723 : $t('package.deprecation.version')
714724 }}
715725 </h2 >
716- <p v-if =" deprecationNotice.message " class =" text-base m-0" >
717- <MarkdownText :text = " deprecationNotice.message " />
726+ <p v-if =" deprecationNoticeMessage " class =" text-base m-0" >
727+ <span v-html = " deprecationNoticeMessage " />
718728 </p >
719729 <p v-else class =" text-base m-0 italic" >
720730 {{ $t('package.deprecation.no_reason') }}
0 commit comments