Closed spaceninja closed 9 months ago
Okay, I just noticed it's not limited to my component. Any blog post with blockquote formatting has the same effect.
So, setting webc as the template engine for markdown files somehow results in some markdown rendering (headings, bolds, italics, paragraphs, etc), but not blockquotes.
Test case:
# Title
> Dolor sit amet, **consectetur** adipiscing elit.
Dolor sit amet, **consectetur** adipiscing elit.
Renders as
<h1>Title</h1>
<p>> Dolor sit amet, <strong>consectetur</strong> adipiscing elit.</p>
<p>Dolor sit amet, <strong>consectetur</strong> adipiscing elit.</p>
And now that I had a better set of search terms, I find this is already a reported issue.
I really wish that the documentation page mentioned that this was a bad idea, it could have saved me a couple days of wasted work.
I've added a webc component and it's mostly working, but confusingly it's only rendering some of the markdown formatting in the slot.
In my eleventy config, I've set
markdownTemplateEngine: 'webc'
media-object.webc
blog-post.md
What actually gets rendered is
Note the blockquote didn't get rendered (but the strong tag inside did!)