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

Mdast Initialization #585

Merged
merged 3 commits into from
Sep 9, 2024
Merged

Mdast Initialization #585

merged 3 commits into from
Sep 9, 2024

Conversation

hariria
Copy link
Collaborator

@hariria hariria commented Sep 6, 2024

Context

The work for the Nextra Playground component was finally merged upstream by the maintainer: shuding/nextra#3174, shuding/nextra#3146, shuding/nextra#2955. This gives the opportunity to potentially create a way to render remote markdown content (like move reference docs from aptos-labs/aptos-core) inside Nextra natively. But we CANNOT load the move reference docs as-is because it is not compileable to MDX and Nextra's MDX parser was failing to parse the markdown.

Description

This is one of two PRs aimed at creating a way to take existing markdown, parsing it to an AST, and cleaning it so that it's .mdx compatible. The idea is that on client load, it would parse the markdown, clean it, and then render via the Playground component.

Checklist

  • Do all Lints pass?
    • Have you ran pnpm spellcheck?
    • Have you ran pnpm fmt?
    • Have you ran pnpm lint?

Copy link

vercel bot commented Sep 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
developer-docs-nextra ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 9, 2024 6:00pm

@hariria hariria merged commit a258735 into main Sep 9, 2024
5 checks passed
@hariria hariria deleted the mdast branch September 9, 2024 19:38
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.

2 participants