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 · 9 comments
Open

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

everonegraham opened this issue Jan 28, 2024 · 9 comments
Labels
enhancement New feature or request

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

@satnaing satnaing added the enhancement New feature or request label Aug 4, 2024
@satnaing
Copy link
Owner

satnaing commented Aug 4, 2024

I'll look into it.
The thing is, I'm not very familiar with the remark plugin ecosystem, but I'll give it a try in future releases. (tho I can't guarantee yet)

@vagrant-soul
Copy link

vagrant-soul commented Aug 8, 2024

Here's one someone else wrote, not sure if it's somewhat informative
link
image

@fazi-gondal
Copy link

fazi-gondal commented Nov 13, 2024

@satnaing @kzshantonu @everonegraham @cswpy @benjaminrae Hi everyone i found some solution of call-outs you can use these two plugin. rehype-callouts and it's syntax
callouts-code
callouts
and remark-alert and it's syntax
remark-callouts
so you can use any one plugin for call-outs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants