mathiassm
Safe HaskellNone
LanguageGHC2024

MathiasSM.Filters

Description

Custom Pandoc filters, like the ruby-text transform

Synopsis

Documentation

processRubyText :: Inline -> Inline Source #

Change special syntax (overloading Links) into ruby-annotated text

Ex. 飯 into ruby飯rtはん/rt/ruby

NOTE: Uses RawInline since there's no native AST representation

NOTE: Author should manually add {lang=jakozh/...} for accesibility and using correct CJK font