Skip to content

Commit

Permalink
fix: render md to html string correctly (#11)
Browse files Browse the repository at this point in the history
fix: render md to html string
  • Loading branch information
KazooTTT authored Apr 2, 2024
1 parent ad7d7f3 commit c10f729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .vitepress/theme/components/Route.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<code>{{ item.replace(/:|\?|\+|\*/g, '') }}</code>,{{ ' ' }}
<!-- TODO: Handle below translations based on last character in the item -->
required - {{ ' ' }}
<span>{{ renderMarkdown(data.parameters?.[item.replace(/:|\?|\+|\*/g, '')] || '') }}</span>
<span v-html="renderMarkdown(data.parameters?.[item.replace(/:|\?|\+|\*/g, '')] || '')"/>
</li>
</ul>
</div>
Expand All @@ -52,7 +52,7 @@
<code>{{ item.name }}</code>,{{ ' ' }}
{{ item.optional ? 'optional' : 'required' }}
{{ ' - ' }}
<span>{{ renderMarkdown(item.description) }}</span>
<span v-html="renderMarkdown(item.description)"/>
</li>
</ul>
</div>
Expand Down

0 comments on commit c10f729

Please sign in to comment.