Rendering modes
builder.rendering(mode) sets how hanja and their hangul readings appear in
the output.
RenderMode variants
RubyOnHangul and RubyOnHanja produce <ruby> markup; they are most
useful with HTML or Markdown output. In plain-text mode they fall back to
parentheses. The annotation is wrapped in <rp> (ruby parenthesis)
elements so that browsers without <ruby> support still render the reading
as a parenthesized gloss (한자(漢字)) rather than running it into the base
text.
Original mode with a gloss style
RenderMode::Original keeps hanja in place and adds a gloss only for
homophones that need disambiguation. Use RenderOptions to also set the
gloss style: