Comments (9)
Btw: I’d strongly suggest to also allow rehype plugins.
Markdown is used a lot to get to HTML. Historically, there was only remark, so a bunch of things were implemented in that space. But there are also many use cases that don’t really care about the input being markdown, or actually don’t have input markdown (e.g., html -> html), which also makes sense for Astro. So integrating with both would be my recommendation!
from astro.
IMO the point of migrating to remark
was to leverage the extensive plugin ecosystem that supports remark
. The way that we render markdown (interwoven in small snippets between elements) might be jarring to expose directly to users. But if anyone feels like handing rendering entirely over to users is a better solution, I'm interested to hear why!
from astro.
@akellbl4 awesome, definitely let us know if you have any questions! The way renderers
are implemented is probably similar to the way we'll handle this.
from astro.
Thanks for chiming in @wooorm! #562 is in progress and adds support for both!
from astro.
Currently we use remark
to do Markdown rendering. Is the goal here to provide hooks so that a user can add support for additional markdown features (which could probably be done by adding remark plugins), or is the goal to completely take over and do ones own Markdown compilation?
from astro.
If I understand correctly one use case would be to extend markdown files with custom extensions for e.g. integrating html snippets (for design systems) or to wrap some parts of default markdown with additional markup while rendered, adding footnotes and summaries of links, comments which should not be rendered in html but shall stay in markdown etc..?
from astro.
Yep!
from astro.
I didn't found this issue and tried to implement one of Remark plugins right in Astro.
I think it's a great idea to provide the hook for custom remark plugins. I would like to work on it because I'm in the process of migrating my site to Astro and I need remark-code-titles . I think it's the only thing that stops me from full migration.
from astro.
I've played with source code and written rough implementation.
I have two concerns for now:
headers collector could conflict withI've added backward compatibility.remark-slug
- Should preinstalled plugins be removed?
- I haven't found any docs on
mode: 'md' | 'astro-md'
and dropped it for fast implementation.
I would be happy to have any comments on my PR.
from astro.
Related Issues (20)
- VIewTransitions break on presence of <input name="action"> HOT 2
- cannot dev or preview a page, if the page filename contain 'index', eg. e-index.astro HOT 2
- onTouchStart not being attached to DOM elements when using jsx HOT 8
- Rendering React component does not work HOT 4
- `@astrojs/mdx`: “smart quotes” are broken in HTML headers HOT 2
- React hydration error with react table but works fine the same example in next.js HOT 2
- ViewTransitions breaking Radix/Shadcn ui Dropdown Functionality in Astro App HOT 7
- Relative paths in css url() references get double encoded HOT 4
- @astro/node gcloud [ERROR] TypeError: Error: Unexpected end of multipart data HOT 4
- Astro DB on Cloudflare: Build fails with "Cannot create a remote client: missing app token" error. HOT 5
- Astro DB: push with --force-reset doesn't seem to work. HOT 2
- A command field in astro:config:setup returns build value while running check command HOT 3
- Astro DB: `astro preview` fails with "Cannot create a remote client: missing app token"
- Bun & Tailwind - Unexpected reading - node_modules/postcss-load-config/src/options.js HOT 3
- [View Transitions] Using client:only in dev causes page reloads on view transitions HOT 3
- @astrojs/mdx>=2 unnecessarily removes whitespaces and line breaks from multiline strings in Astro components props supplied from Remark HOT 1
- Toolbar audit incorrectly flagging images as above the fold HOT 3
- React component not showing only on dev HOT 3
- Astro DB: there is no way of creating a primary key composed of several columns HOT 2
- Warning: ReactDOMServer.renderToStaticNodeStream() is deprecated. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astro.