I'm trying to write a filter (in panflute) to convert
ruby characters from HTML to ConTeXt.
Input HTML:
<p>This is an example: <ruby>例<rt>レイ</rt></ruby></p>
After conversion (what I want my output to look like):
This is an example: \ruby{例}{レイ}
What's a good way to approach this kind of conversion? I don't know how to target the ruby tags.