Make sure it is rendering on the server side for SEO reasons.
<script setup lang="ts">
const markdown = "# hello world"
</script>
<template>
<LayoutContent>
<!-- renders "markdown" here -->
</LayoutContent>
</template>
I wanted to compile “markdown” into html and render it inside a LayoutContent component.
In addition, I want it to support code highlight.
New contributor
Yousef Husain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.