Expose @astrojs/markdown-remark as a public API #1094
gingerchew
started this conversation in
Proposal
Replies: 2 comments 1 reply
-
As seen in the docs discussion, this use case will be used extensively in my opinion. The "internal side of Astro's markdown renderer" in this case is @astrojs/markdown-remark. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thank you for continuing the discussion, this would be incredibly valuable for me. By providing an official way to hook-in, projects which define additional plugins in their config could have those plugins impact the 3rd-party loader. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
By making
@astrojs/markdown-remark
, the internal package responsible for Astro's markdown renderer, a public API, it will allow integrations/loaders to better deal with markdown content in a unified/"astro-ified" way.Background & Motivation
The discussion started in the docs.
By having a "sanctioned" way to process markdown in Astro, developers won't need to bring in their own solutions. It will make it easier to generate markdown and the result will always be what is expected based on the Astro.markdown config.
Goals
A concise, bulleted-list outlining the intended goals of this RFC.
dataStore.rendered.metadata
object for Content LayerExample
I haven't made any real integrations that weren't just "Make this a virtual module", so I'd be interested to see if any real integ-heads had thoughts as well.
Beta Was this translation helpful? Give feedback.
All reactions