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

Arguments

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