Skip to content

Conversation

@Adammatthiesen
Copy link
Member

This pull request introduces support for GitHub callouts/asides in the @studiocms/markdown-remark package. The primary changes include adding new CSS themes for callouts, updating the package configuration, and implementing a new Rehype plugin for rendering callouts.

Key changes:

Support for GitHub Callouts/Asides:

  • Added support for GitHub callouts/asides in the @studiocms/markdown-remark package. (.changeset/unlucky-donuts-cough.md)

CSS Themes for Callouts:

  • Created new CSS themes for callouts, including github, obsidian, and vitepress themes. (packages/markdown-remark/assets/callout-themes/github.css, packages/markdown-remark/assets/callout-themes/obsidian.css, packages/markdown-remark/assets/callout-themes/vitepress.css) [1] [2] [3]

Package Configuration:

  • Updated package.json to include new assets and dependencies. (packages/markdown-remark/package.json) [1] [2]

Rehype Plugin for Callouts:

  • Implemented a new Rehype plugin for rendering themed callouts with support for collapsible callouts. (packages/markdown-remark/src/processor/callouts/index.ts)

Integration Options:

  • Added options for configuring the callouts theme in the Markdown processor. (packages/markdown-remark/src/integration/index.ts) [1] [2] [3]

@Adammatthiesen Adammatthiesen requested a review from a team as a code owner January 5, 2025 11:01
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 5, 2025

Open in Stackblitz

npm i https://pkg.pr.new/@studiocms/markdown-remark@5

commit: e97d309

Copy link
Member

@louisescher louisescher left a comment

Choose a reason for hiding this comment

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

Amazing

Copy link
Member

@dreyfus92 dreyfus92 left a comment

Choose a reason for hiding this comment

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

awesome! 🫡

@Adammatthiesen Adammatthiesen merged commit 4beb076 into main Jan 5, 2025
4 checks passed
@Adammatthiesen Adammatthiesen deleted the feat-callouts branch January 5, 2025 18:26
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.

4 participants