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

Handle custom admonition syntax #95

Merged
merged 5 commits into from
Sep 3, 2024

Conversation

damianstasik
Copy link
Collaborator

@damianstasik damianstasik commented Aug 27, 2024

This adds support for the custom admonition syntax that providers and modules may use in their docs to render special blocks with warnings/notes/etc. We could probably convert this into a remark/rehype plugin but this approach was quicker to implement.

We could also add support for the syntax that GH supports so that maintainers of providers and modules could render these blocks on both GH and our Registry UI in a unified way.

Closes #80

Signed-off-by: Damian Stasik <[email protected]>
@damianstasik damianstasik force-pushed the handle-custom-admonition-syntax branch from ce0a5dc to b6e5917 Compare September 3, 2024 10:37
Copy link

cloudflare-workers-and-pages bot commented Sep 3, 2024

Deploying registry-ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2ff4d8c
Status: ✅  Deploy successful!
Preview URL: https://2aa306fb.registry-ui-dxi.pages.dev
Branch Preview URL: https://handle-custom-admonition-syn.registry-ui-dxi.pages.dev

View logs

@damianstasik damianstasik marked this pull request as ready for review September 3, 2024 11:17
@damianstasik damianstasik merged commit acd1b00 into main Sep 3, 2024
4 checks passed
@damianstasik damianstasik deleted the handle-custom-admonition-syntax branch September 3, 2024 14:43
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.

Formatting around blocks of warning, note etc...
2 participants