Thanks a lot, this is helpful. They are being converted fine now.

On Fri, Sep 9, 2022 at 10:01 AM John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Use -f html+tex_math_single_backslash

That tells it to try to parse things in the form \(..\) or \[..\] as LaTeX math.


> On Sep 8, 2022, at 7:15 PM, Explorer <kumarsunil1996ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Hello
>    I'm trying to convert html file containing mathematical expression in latex using the following command:
>
> pandoc -i integrals.html -o integrals_doc.docx
>
>    But the output contains latex as  it is. I also tried --mathml flag, but no luck.
>
> But if the source html file contains expression in mathml, it works fine while converting to docx.
>
> Similarly, I want to convert it to epub containing mathml expression, because the epub-reader we are targeting only support mathml expression.
> Any leads in this conversion from html containing latex to docx or epub with mathml will be very helpful.
>
> Thanks in anticipation
>
>
> --
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAOYNTAxtO81qpu4dW--4p%3Da%3D-WBqN_uNWV06JMO0Rt7hs67G3Q%40mail.gmail.com.
> <integrals.html><integral_doc.docx>

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0C55983B-4301-4456-9354-066A2D714B52%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAOYNTAwmBQ8Z9KmKY15Jfr3R1Ts-SeXa-%3DjiLJDHOay%3DLeJoRQ%40mail.gmail.com.