theaterpedia / crearis-nuxt

2 stars 0 forks source link

N-35 How to use Prose #37

Open crearis opened 1 day ago

crearis commented 1 day ago

I don't understand how to use with a content-prop or slot that serves html along with vue-components (example: Heading).

Had to build a workaround-component 'MdBlock' that allows to display html-content that get's rendered from MD on the fly.

See this in action on: http://localhost:3000/ausbildung-theaterpaedagogik/einstiege_complex

If we replace components/content/DataViewProduct with components/content/DataViewProductProse

we see the misbehaviour (html for 'Heading' not getting rendered)

As shown here: Image

murisceman commented 1 day ago

Have you tried using v-html? Docs: https://vuejs.org/guide/essentials/template-syntax.html#raw-html