Skip to content

Use markdown in fieldsets #34

Answered by lokmanm
oke-oketech asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @oke-oketech,

If you use Markdown that will spit out HTML which is usually unstyled. To get that HTML styled you can check how we style the text coming from Bard ( which is HTML ) here.

It's as simple as wrapping your component with:

<div
    class="max-w-3xl mx-auto prose prose-lg prose-p:text-gray-900 prose-a:text-secondary-900 prose-headings:text-primary-900">
    {{ markdown_handle_here }}
</div>

Change markdown_handle_here to your actual Markdown handle and it should work.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@oke-oketech
Comment options

Answer selected by lokmanm
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