preprocess_math_text Subroutine

public subroutine preprocess_math_text(input_text, result_text, result_len)

Remove '$' delimiters and escape '^'/'_' outside math so they render literally UTF-8 aware: multi-byte characters are copied as intact sequences

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: input_text
character(len=*), intent(out) :: result_text
integer, intent(out) :: result_len