Markdown formatting outside of section #615
Answered
by
bakerkretzmar
ChrisButterworth
asked this question in
Q&A
-
Looking to use Markdown in an additional field but no html formatting found when outputting the field. Any advice would be great. |
Beta Was this translation helpful? Give feedback.
Answered by
bakerkretzmar
Mar 20, 2022
Replies: 1 comment
-
By "field" do you mean you have some markdown in your frontmatter? Like this? ---
description: |
## Subheading here
More markdown description content.
draft: true
---
# Title
Main content. I think you should be able to handle that by doing something like this in your template: <div>
{!! \Illuminate\Container\Container::getInstance()->make('markdownParser')->parse($page->description) !!}
</div> Jigsaw can't really handle that kind of thing for you because we have no way of knowing if there's markdown in your frontmatter or not. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ChrisButterworth
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By "field" do you mean you have some markdown in your frontmatter? Like this?
I think you should be able to handle that by doing something like this in your template:
Jigsaw can't really handle that kind of thing for you because we have no way of knowing if there's markdown in your frontmatter or not.