15 lines
370 B
Vue
15 lines
370 B
Vue
<script setup lang="ts">
|
|
import { splitInlineCode } from '@/lib/apiReference'
|
|
|
|
defineProps<{
|
|
text: string
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<template v-for="(part, index) in splitInlineCode(text)" :key="index">
|
|
<code v-if="part.code" class="font-mono text-xs text-highlighted">{{ part.value }}</code>
|
|
<template v-else>{{ part.value }}</template>
|
|
</template>
|
|
</template>
|