# ScholarlyMarkdown FAQs

Tim T.Y. Lin
Why isn’t my math showing correctly in HTML?
By default ScholarlyMarkdown uses MathJax for rendering, check the MathJax support page for list of supported latex commands. In the future there will also be support for KaTeX once it is mature enough to handle multiline equations, numbered labels, and macros.
Why isn’t my math showing correctly in LaTeX?
Most common cause is a badly imported or unexpected package. Check whether the rendered LaTeX code is malformed first.
Make sure all LaTeX commands are defined in a math_def class math block. Also, MathJax and LaTeX have different rules when dealing with pre-defined/conflicting macro names; just because your math displays correctly with MathJax doesn’t always mean LaTeX likes it, and vice versa.
Need to also use texlive-science in addition to texlive-latex-basic and texlive-latex-recommended for Debian
• Encourage use of \providecommand instead of \def or \newcommand