Fix incorrect code examples in the Markdown guide#14032
Conversation
✅ Deploy Preview for astro-docs-2 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
| const compiled = await greatPost.compiledContent(); | ||
| const posts = Object.values(import.meta.glob('./posts/*.md', { eager: true })); | ||
| --- | ||
|
|
||
| <p>{greatPost.frontmatter.title}</p> | ||
| <p>Written by: {greatPost.frontmatter.author}</p> | ||
|
|
||
| {greatPost.compiledContent()} | ||
| <Fragment set:html={compiled} /> |
There was a problem hiding this comment.
{greatPost.compiledContent()} renders escaped HTML, so the post body appears as literal text. Replaced with await + <Fragment set:html={...} />.
| features: { directive: true, definitionList: true }, | ||
| features: { directive: true }, |
There was a problem hiding this comment.
Removed definitionList: true because no such feature exists per the Sätteri features docs.
* main: i18n(ko-KR): update `cosmic`, `markdown-content`, `modified-time` (#14041) i18n(pt-br): Update editor-setup.mdx translation (#14040) i18n(it-IT): create it/guides/fonts.mdx (#13871) i18n(fr): update `guides/astro-db.mdx` & `integrations-guide/db.mdx` (#14033) i18n(fr): update `guides/markdown-content.mdx` (#14034) i18n(fr): update `recipes/modified-time.mdx` (#14035) i18n(fr): update `session-driver-reference.mdx` (#14036) Remove a broken theme in Cosmic (#14039) Remove stale themes and production sites on 3rd party guides [i18nIgnore] (#14038) Remove deprecated `remarkPlugins` references from "last modified" recipe (#14029) Fix incorrect code examples in the Markdown guide (#14032) i18n(ko-KR): update `db`, `astro-db`, `github`, `session-driver-reference` (#14031) Deprecate `@astrojs/db` (#13986)
Description (required)
Fixes two incorrect code examples in the Markdown guide.
Related issues & labels (optional)