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

Feature Request: Add admonitions/call-outs support. #254

Open
everonegraham opened this issue Jan 28, 2024 · 6 comments
Open

Feature Request: Add admonitions/call-outs support. #254

everonegraham opened this issue Jan 28, 2024 · 6 comments

Comments

@everonegraham
Copy link

Hi there,

I'm not sure if this is a limitation of the markdown library being used or not. How can we add admonitions/call-outs to our .md files?

The callouts show up in VSCode when using their test preview. But when rendered, it doesn't.

eg:

[!Note] Note
This is a note.

image

Cheers.

@benjaminrae
Copy link
Contributor

Astro content supports remark and rehype plugins, there is a remark-admonitions plugin but it doesn't seem to be maintained. You could try remark-directive

@everonegraham
Copy link
Author

Oh, thanks for pointing that out. I'll give it a try.

@everonegraham
Copy link
Author

I do prefer Obsidians style for callouts though.

@everonegraham everonegraham changed the title How to add admonitions/call-outs? Feature Request: Add admonitions/call-outs support. Feb 4, 2024
@everonegraham
Copy link
Author

Updated this to be a feature request.

@cswpy
Copy link

cswpy commented Feb 5, 2024

I recently bumped into the same issue. I am writing all my blog articles locally in Obsidian so Obsidian-flavored callout is preferred. Right now I am using this gz-remark-callout plugin to show the callouts. However, its "blockquote"-based implementation is a bit awkward, and it's not easy to set up a consistent CSS styling for "div"-based container for beginners like me. It would be great to see Astro Paper could support callout natively.

@kzshantonu
Copy link

Have to +1 this

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

No branches or pull requests

4 participants