feat: add ruby helper shortcode

This commit is contained in:
草师傅 2025-06-12 20:35:32 +08:00
parent a2d594b393
commit d5d025e011
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,6 @@
---
const { text, ruby } = Astro.props;
---
<ruby>
{text} <rp>(</rp><rt>{ruby}</rt><rp>)</rp>
</ruby>