-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to output Markdown content as raw HTML? #185
Comments
The typical setup would be to extend a parent template from each of your collection items, and render the content using If you have a repo of your project I can take a look at, I can give you more specific advice...there may be a better way to structure your collection files. |
Thanks for the feedback. We are using markdowns in a collection to add updates to youth camps that we run. This is the repo: https://github.com/CodeDesignInitiative/cdweb1801 Each camp is an own markdown from the The I guess that in this setting, I cannot extend on an layout and need to to refer to |
Yes, if you're referencing an item directly, like you are with each But I've just added support for the ability to drop the |
I have problems outputting the content of a collection's Markdown as pure HTML.
When I use
{{ $collection->getContent() }}
I get"<p>My content</p>"
which literally outputs the HTML tags. When I use theblade
raw
directive:{!! $collection->getContent() !!}
, I get the right result, but it this the best practice?I use the content block in a partial and cannot use the
@yield()
command in that scenario I guess.The text was updated successfully, but these errors were encountered: