Skip to content

Markdown formatting outside of section #615

Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChrisButterworth
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
Converted from issue

This discussion was converted from issue #614 on March 20, 2022 02:00.