Skip to content

Rendering variables with markdown content in them #542

Closed Locked Answered by yyx990803
OwenVey asked this question in Q&A
Discussion options

You must be logged in to vote

Markdown processing is static at build time, so there is no way to render them as Vue variables (which needs to work at both build time and runtime).

Even if it works, you shouldn't be using {{ }} to render them because it renders the content as plain text instead of HTML by design.

The idiomatic way to do this is directly render the table HTML using v-for on your data, just like you'd do in Vue templates, instead of concatenating markdown.

Replies: 1 comment

Comment options

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