Prework
Proposal
After seeing the new release of great_tables, I wanted to try making a table which has math notation in one of the columns. This does not work however, as, if I understand correctly, the markdown to latex or html conversion goes via this package, which does not seem to support mathematics.
MWE:
from multimark import markdown_to_html, markdown_to_latex
test_markdown_math = r"$\frac{a}{b}$"
test_latex = markdown_to_latex(test_markdown_math)
test_html = markdown_to_html(test_markdown_math)
gives '\\$\\textbackslash{}frac\\{a\\}\\{b\\}\\$\n' and '<p>$\\frac{a}{b}$</p>\n' for test_latex and test_html respectively.
My request is therefore if it would be possible to add such a conversion to this package? For me, it would greatly improve the usability of great_tables for making scientific content in Quarto. Don't know how big of a task this is, but happy to hear your thoughts!
Thanks in advance,
Olivier
Prework
Proposal
After seeing the new release of great_tables, I wanted to try making a table which has math notation in one of the columns. This does not work however, as, if I understand correctly, the markdown to latex or html conversion goes via this package, which does not seem to support mathematics.
MWE:
gives
'\\$\\textbackslash{}frac\\{a\\}\\{b\\}\\$\n'and'<p>$\\frac{a}{b}$</p>\n'fortest_latexandtest_htmlrespectively.My request is therefore if it would be possible to add such a conversion to this package? For me, it would greatly improve the usability of great_tables for making scientific content in Quarto. Don't know how big of a task this is, but happy to hear your thoughts!
Thanks in advance,
Olivier