Skip to content

Fix incorrect code examples in the Markdown guide#14032

Merged
ArmandPhilippot merged 2 commits into
withastro:mainfrom
morinokami:update-markdown-content
Jun 10, 2026
Merged

Fix incorrect code examples in the Markdown guide#14032
ArmandPhilippot merged 2 commits into
withastro:mainfrom
morinokami:update-markdown-content

Conversation

@morinokami

Copy link
Copy Markdown
Member

Description (required)

Fixes two incorrect code examples in the Markdown guide.

Related issues & labels (optional)

  • Closes #
  • Suggested label:

@netlify

netlify Bot commented Jun 10, 2026

Copy link
Copy Markdown

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 870a0d0
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/6a292e3a43ceba0009b4d480
😎 Deploy Preview https://deploy-preview-14032--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@astrobot-houston

astrobot-houston commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/guides/markdown-content.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Comment on lines +54 to +61
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} />

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{greatPost.compiledContent()} renders escaped HTML, so the post body appears as literal text. Replaced with await + <Fragment set:html={...} />.

Comment on lines -279 to +280
features: { directive: true, definitionList: true },
features: { directive: true },

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed definitionList: true because no such feature exists per the Sätteri features docs.

Image

@ArmandPhilippot ArmandPhilippot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 💜

@ArmandPhilippot ArmandPhilippot merged commit 3effda4 into withastro:main Jun 10, 2026
12 checks passed
HiDeoo added a commit that referenced this pull request Jun 11, 2026
* 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants