Drasil icon indicating copy to clipboard operation
Drasil copied to clipboard

Investigate `pExpr` in the Markdown printer

Open BilalM04 opened this issue 7 months ago • 1 comments

Current state of pExpr is detailed in https://github.com/JacquesCarette/Drasil/pull/3823#discussion_r1658784453.

pExpr re-defines all the patterns that are different, then delegates to the TeX function in a catch all statement. But since the pExpr function involves recursive calls, the patterns which make a recursive call are redefined as well, leading to some duplication. This is because the current TeX.pExpr does not account for variabilities in the LaTeX commands.

The pExpr function in the Markdown printer needs to be revisited to avoid duplication. Additionally, the TeX.pExpr function needs to be revisited to account for variabilities in syntax.

BilalM04 avatar Jul 09 '24 15:07 BilalM04