Skip to content

Remove the inner div in the Content component? #4804

Closed Answered by joshdales
joshdales asked this question in Q&A
Discussion options

You must be logged in to vote

I didn't figure out how to remove it completely but I figured out a decent enough work-around to create my own theme:

<script setup>
  import { useRoute } from 'vitepress'
  const { route } useRoute()
</script>

<template>
  <component :is="route.component" role="main" />
<template>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joshdales
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant