astro-paper icon indicating copy to clipboard operation
astro-paper copied to clipboard

Feature Request: Add admonitions/call-outs support.

Open everonegraham opened this issue 1 year ago • 9 comments

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.

everonegraham avatar Jan 28 '24 22:01 everonegraham

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

benjaminrae avatar Jan 31 '24 10:01 benjaminrae

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

everonegraham avatar Feb 01 '24 03:02 everonegraham

I do prefer Obsidians style for callouts though.

everonegraham avatar Feb 01 '24 04:02 everonegraham

Updated this to be a feature request.

everonegraham avatar Feb 04 '24 01:02 everonegraham

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.

cswpy avatar Feb 05 '24 22:02 cswpy

Have to +1 this

kzshantonu avatar Feb 19 '24 05:02 kzshantonu

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)

satnaing avatar Aug 04 '24 09:08 satnaing

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

vagrant-soul avatar Aug 08 '24 00:08 vagrant-soul