sherlockpipe.single_transits.report.replace_sub

sherlockpipe.single_transits.report.replace_sub(match)

Replace a regex match with a subscript-wrapped version for LaTeX rendering.

Parameters

matchre.Match

Regex match object whose group(1) is the substring to subscript.

Returns

str

Formatted string with the matched content in subscripts.