medfreeman / remark-vue

Compile Markdown to Vue with remark
MIT License
15 stars 1 forks source link

Basic example not working on client side render #5

Open jnv opened 5 years ago

jnv commented 5 years ago

Hi, I'd like to use remark-vue in Nuxt project, but I can't get Vue to handle the output of the remark renderer.

I have attempted to recreate the basic example in usage here (with specific differences of JSX syntax vs. Vue template): https://codesandbox.io/s/954owl5kp

As you can see, the output of .processSync().contents renders as undefined. Am I missing something?

medfreeman commented 5 years ago

I will explore this thoroughly in a few days. Thanks for your report ! I'll bump remark-vue to 1.0 when it is completely stable.

medfreeman commented 5 years ago

It probably doesn't work in the browser atm. When the server part does work (i'm finishing part of the functionality in hast-to-hyperscript first), i'll make sure it works in browsers.

jnv commented 5 years ago

I see, thanks for the update!