Replies: 1 comment 5 replies
-
My use-case: I want to write "GFM asides" and render them with the help of Starlight Aside, without need to convert to MDX e.g. write > [!NOTE]
> Highlights information that users should take into account, even when skimming. but it would be generated as it was written as import { Aside } from "@astrojs/starlight/components";
<Aside>Highlights information that users should take into account, even when skimming.</Aside> https://astro-digital-garden.stereobooster.com/recipes/gfm-aside/ |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
motivation
md vs mdx
md import pipeline renders to html, mdx import pipeline renders to .js/.ts/.jsx... which allows to customize html tags with Astro components.
goal
I would like to take advantage of an mdx similar power in .md files with Astro, I do nof need mdx with .md extension rather md components enhancements like in mdx
non goal
I do not want to treat mdx with .md extension which has a separate discussion #503
examples
I would like to avoid
and rather
Any ideas of the finest approach to achieve this, it feels like this last step is missing to unleash Astro's power over Markdow !!!
Markdown and SSR (secondary goal)
Markdown currently does not make sense with SSR given that you need to rebuild and redeploy when the markdown changes.
I wanted to keep this section because it is related to markdown customization, if it is possible to customize html string with astro component then remote markdown support would become easy to fulfill with a generic pipeline.
community posts
the search is really hard, only from recent period
https://discord.com/channels/830184174198718474/1077511972163162182
https://discord.com/channels/830184174198718474/1078754947480424549
https://discord.com/channels/830184174198718474/1075478924420730900
https://discord.com/channels/830184174198718474/1074529716352069693
https://discord.com/channels/830184174198718474/1072255962615926885
https://discord.com/channels/830184174198718474/1056870932305694770
markdown landscape survey and predictions
this is my survey about "markdown" and beyond (light weight markup) landscape
https://github.com/orgs/MicroWebStacks/discussions/8
not only I wish but I will also recommend, help and push towards markdown standardisation and unification of practices. Multiplicity of files extensions is one of them .md, .mdx, .mmd .mdok. I would distinguish flavors and extensions as being website and engine internals and not splitting the content base into heterogeneous incompatible categories nor being used as a lockin opportunity. Therefore I do not see myself deviating from the the .md extension and from a correct minimilastic githug rendering. The rest, styling and augmentations, is the core business of md renderering engines, why would one prevent itself from profiting of its language technology for such enhancements.
references
Beta Was this translation helpful? Give feedback.
All reactions