Skip to content

Remove deprecated remarkPlugins references from "last modified" recipe#14029

Merged
ArmandPhilippot merged 5 commits into
withastro:mainfrom
kydecker:patch-1
Jun 10, 2026
Merged

Remove deprecated remarkPlugins references from "last modified" recipe#14029
ArmandPhilippot merged 5 commits into
withastro:mainfrom
kydecker:patch-1

Conversation

@kydecker

@kydecker kydecker commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Description

This updates the modified time recipe to remove references to the now-deprecated remarkPlugins config option.

Related issues & labels

No existing issue

@astrobot-houston

astrobot-houston commented Jun 9, 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/recipes/modified-time.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 thread src/content/docs/en/recipes/modified-time.mdx Outdated
Comment thread src/content/docs/en/recipes/modified-time.mdx
Comment thread src/content/docs/en/recipes/modified-time.mdx
import { remarkModifiedTime } from './remark-modified-time.mjs';

export default defineConfig({
markdown: {

@kydecker kydecker Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

One thing that tripped me up here: I followed the recipe as-is and last updated wasn't showing up. Wasn't sure why, then discovered that mdx requires putting the processor somewhere else. Maybe worth calling out? https://docs.astro.build/en/guides/markdown-content/#modifying-frontmatter-programmatically

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.

I'm not sure I understand. Do you mean, you had to add something special so it works with MDX? If so, it sounds like a bug. IIUC, MDX should inherit from Markdown config by default!

If you refer to step 2 in your link... Maybe this is more confusing than helpful currently. The "or" is, AFAIK, if you want to use a different configuration for MDX. But, I can understand the confusion here!

(This was originally planned for v7, but we changed our minds at the last minute so people had the chance to try it… The docs may have been written a little hastily. 😅 Thanks for your feedback!)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh, interesting. I initially put the config within the markdown config option, but it didn't output anything to the frontmatter for my mdx files.

I had to relocate the processor config within the mdx() integration to get it to work.

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.

Oh, weird. Thanks for the clarification! Maybe I misunderstood or maybe there is a bug here. I'll see if I can find more info before we merge this!

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.

Okay, so, it seems MDX should indeed inherit from markdown. config (unless you disable extendMarkdownOptions). If this doesn't work, it sounds like a bug and a minimal repro reported to withastro/astro could be helpful!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll try to dig in a bit more!

@netlify

netlify Bot commented Jun 9, 2026

Copy link
Copy Markdown

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 7b494a7
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/6a285e42373a870008648a3b
😎 Deploy Preview https://deploy-preview-14029--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.

@netlify

netlify Bot commented Jun 9, 2026

Copy link
Copy Markdown

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 156c7d3
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/6a29302920e63c0008bd55e6
😎 Deploy Preview https://deploy-preview-14029--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.

@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! 💜
I left a nit for the first step, let me know what you think of it. I'm not approving yet because I'm not sure I understand your last comment (see my reply), but overall this looks good to me!

Comment thread src/content/docs/en/recipes/modified-time.mdx Outdated
Comment thread src/content/docs/en/recipes/modified-time.mdx
Comment thread src/content/docs/en/recipes/modified-time.mdx
import { remarkModifiedTime } from './remark-modified-time.mjs';

export default defineConfig({
markdown: {

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.

I'm not sure I understand. Do you mean, you had to add something special so it works with MDX? If so, it sounds like a bug. IIUC, MDX should inherit from Markdown config by default!

If you refer to step 2 in your link... Maybe this is more confusing than helpful currently. The "or" is, AFAIK, if you want to use a different configuration for MDX. But, I can understand the confusion here!

(This was originally planned for v7, but we changed our minds at the last minute so people had the chance to try it… The docs may have been written a little hastily. 😅 Thanks for your feedback!)

Comment thread src/content/docs/en/recipes/modified-time.mdx Outdated

@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.

Thanks for your help! 🙌🏽

@ArmandPhilippot
ArmandPhilippot merged commit f1b1521 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)
tarikrital pushed a commit to tarikrital/astro-docs that referenced this pull request Jul 6, 2026
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