Support picking up query string based parameters for MDX integration #274
Replies: 2 comments
-
|
Makes sense! Pretty sure we could update the URL parsing to do that. |
Beta Was this translation helpful? Give feedback.
-
|
Just took a quick look and, while do-able, will need a little re-architecting to achieve. Currently the system looks like this:
Source code: astro-embed/packages/astro-embed-integration/remark-plugin.ts Lines 18 to 37 in 30e8221 Matchers are “owned” by each service’s package, while the remark integration is generic — it just waits for a service to match the URL and then handles creating the component. So we’d want to update the contract so that matchers can return a props object I guess instead of just a string ID. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A nice to have would be turning MDX strings like this:
https://www.youtube.com/embed/PSGEjv3Tqo0?start=301into this:
<lite-youtube videoid="PSGEjv3Tqo0" params="start=301">Obviously the
<YouTube />component can be imported and used with all the params you want, but it would be a nice little bonus!Beta Was this translation helpful? Give feedback.
All reactions