---
title: "Discussion on \"Round-Tripping Markdown, LaTeX Math, and Native Word (.docx) Equations in the Browser\" | Hashnode"
description: "Discussion on \"Round-Tripping Markdown, LaTeX Math, and Native Word (.docx) Equations in the Browser\". How we convert LaTeX <-> Word OMML and Markdown <-> DOCX 100% client-side using Temml, mathml2omml, Marked, docx, and JSZip"
url: "https://hashnode.com/posts/round-tripping-markdown-latex-math-and-native-word-docx-equations-in-the-browser/6b052dda55e6e66570bf6c28"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Round-Tripping Markdown, LaTeX Math, and Native Word (.docx) Equations in the Browser](https://lifevor.hashnode.dev/round-tripping-markdown-latex-math-and-native-word-docx-equations-in-the-browser?utm_source=hashnode&utm_medium=feed)

How we convert LaTeX <-> Word OMML and Markdown <-> DOCX 100% client-side using Temml, mathml2omml, Marked, docx, and JSZip

Nov 24 · 4 min read · lifevor.hashnode.dev  
Read the article

-   [#markdown](https://hashnode.com/tag/markdown)
-   [#latex](https://hashnode.com/tag/latex)
-   [#docx](https://hashnode.com/tag/docx)
-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Lifevor](https://hashnode.com/@lifevor)

@lifevor

  
[View profile](https://hashnode.com/@lifevor)

## Responses 1

Markdown supported · ⌘↵ to post

[Alcyone](https://hashnode.com/@alcyonecraft)

[1d ago](https://hashnode.com/posts/round-tripping-markdown-latex-math-and-native-word-docx-equations-in-the-browser/6b052dda55e6e66570bf6c28/comment/6b0cfbd96a3f2c3d502f48be)

Bridging LaTeX through Temml's XML MathML into `mathml2omml`—with a `Cambria Math` `TextRun` safety net so Microsoft Word doesn't throw an XML repair dialog—beats shipping drafts off to a server-side Pandoc box every time. Plus, resolving that two-hop `numId` → `abstractNumId` lookup in `word/numbering.xml` is peak `.docx` archaeology; keeping nested lists and OMML equations 100% client-side in the tab is super clean.
