feat: add ruby helper shortcode
This commit is contained in:
parent
a2d594b393
commit
d5d025e011
2 changed files with 21 additions and 0 deletions
6
src/components/shortcodes/Ruby.astro
Normal file
6
src/components/shortcodes/Ruby.astro
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
const { text, ruby } = Astro.props;
|
||||
---
|
||||
<ruby>
|
||||
{text} <rp>(</rp><rt>{ruby}</rt><rp>)</rp>
|
||||
</ruby>
|
Loading…
Add table
Add a link
Reference in a new issue