Replies: 2 comments
-
I encountered the same problem and resolved it using Note
Here's my code: <template>
<div>
<textarea v-model="inputText" placeholder="Enter text to render" />
<MDC :value="processedInputText"></MDC>
</div>
</template>
<script setup>
const inputText = ref('# hello world')
const processedInputText = computed(() => inputText.value.length > 0 ? inputText.value : 'No content yet');
</script> |
Beta Was this translation helpful? Give feedback.
0 replies
-
More discussions see #924 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I love all the benefits that comes with this library, but I have one issue and not sure how to solve it.
I am currently working on small editor and I want to show the result immediately side by side. I was able to find way to render static string by using
markdownParser.parse()
and<ContentRenderer />
but I think that is not the best way, and when the source string change I wasn't able to find some elegant way to render it with fresh content...So is there some way to accomplish live MD rendering using Nuxt Content.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions