Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor mdx remark plugins #8430

Merged
merged 3 commits into from
Sep 7, 2023
Merged

Refactor mdx remark plugins #8430

merged 3 commits into from
Sep 7, 2023

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Sep 6, 2023

Changes

  • Deduplicate the remarkShiki and remarkPrism code between @astrojs/markdown-remark and @astrojs/mdx.
  • Move main remarkShiki and remarkPrism code to @astrojs/markdown-remark

Testing

Existing markdown tests should pass. Also ran the mdx, markdown-remark, astro tests locally.

Docs

n/a. internal refactor.

@changeset-bot
Copy link

changeset-bot bot commented Sep 6, 2023

🦋 Changeset detected

Latest commit: 4a7931b

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added feat: markdown Related to Markdown (scope) pkg: integration Related to any renderer integration (scope) labels Sep 6, 2023
@@ -61,7 +62,6 @@ export async function renderMarkdown(
frontmatter: userFrontmatter = {},
} = opts;
const input = new VFile({ value: content, path: fileURL });
const scopedClassName = opts.$?.scopedClassName;
Copy link
Member Author

Choose a reason for hiding this comment

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

I removed this since it seems to only been used for Astro-flavoured markdown, which we don't use anymore.

@bluwy bluwy merged commit f3f62a5 into main Sep 7, 2023
13 checks passed
@bluwy bluwy deleted the remark-refactor branch September 7, 2023 14:28
@astrobot-houston astrobot-houston mentioned this pull request Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: markdown Related to Markdown (scope) pkg: integration Related to any renderer integration (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants