0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages
StandardGage c081adf998
Allow Code Component to have custom props and extra class styles (#9960)
* Create simple react element if element has no children

* Fix for when element has text

* add changeset

* Add additionalProps to Code component and ShikiHighlighter.highlight()

* Add changeset

* Create simple react element if element has no children

* Fix for when element has text

* add changeset

* Add additionalProps to Code component and ShikiHighlighter.highlight()

* Add changeset

* reverted accidental changes

* remove unnecessary parts

* Add HTMLAttributes type to additionalProps

* Update .changeset/calm-bags-deliver.md

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

* extend HTMLAtts instead

* add suggestions

* feat: address reviews

* chore: remove empty line

* feat: move attributes to options

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-03-08 13:02:53 +00:00
..
astro Allow Code Component to have custom props and extra class styles (#9960) 2024-03-08 13:02:53 +00:00
astro-prism Use eslint-plugin-regexp (#9993) 2024-02-07 20:43:19 +08:00
astro-rss chore: use biome to sort imports - only test files (#10180) 2024-02-21 14:08:19 +00:00
create-astro [ci] release (#10362) 2024-03-07 19:53:37 -06:00
db [ci] release (#10362) 2024-03-07 19:53:37 -06:00
integrations Fix mdx test fail with rehype-pretty-code (#10370) 2024-03-08 20:39:15 +08:00
internal-helpers Use eslint-plugin-regexp (#9993) 2024-02-07 20:43:19 +08:00
markdown/remark Allow Code Component to have custom props and extra class styles (#9960) 2024-03-08 13:02:53 +00:00
telemetry chore: import sort source code, exception for the astro package (#10242) 2024-02-27 11:15:27 +00:00
underscore-redirects chore: import sort source code, exception for the astro package (#10242) 2024-02-27 11:15:27 +00:00
upgrade chore: import sort source code, exception for the astro package (#10242) 2024-02-27 11:15:27 +00:00