Previously, front matter REQUIRED a layout property (e.g. layout: ../../layouts/MarkdownPostLayout.astro) Now, it's ALSO OK to include your layout as an import in "setup":
setup: |
import Layout from '../../layouts/BlogPost.astro'
import SomeOtherComponent from '../../components/SomeOtherComponent.astro'
3. Inline components inside
<Markdown>
break some renderingPreviously the following:
Would include the full line in paragraph tags:
Now it fails to generate the
<p>
tags:Which causes everything to be on a single line (assuming the component isn’t a block element). One needs to explicitly include the
<p>
tags. This seems like slightly undesirable behaviour, but I don’t know how easy it is to address if this is handled by a third-party Markdown parser.