LoveMarkdown

v1.0.2
io.github.coolnico/lovemarkdown-mcp Checked 23 hours ago Published 1 month ago

Markdown ⇄ Word (.docx) and Markdown → LaTeX.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

markdown_to_docx

Convert Markdown to a styled Word .docx file. Supports headings (real Word heading styles), bullet/ordered/nested lists, tables, code blocks, blockquotes, links, and horizontal rules. LaTeX math in $...$ / $$...$$ degrades to readable Unicode text (no browser rendering in this environment). Writes the file to disk and reports the output path and size.

ParameterTypeDescription
markdown *stringThe Markdown source text.
output_path *stringAbsolute or relative path for the .docx file to write.

docx_to_markdown

Convert a Word .docx file to clean Markdown. Headings, bold/italic, strikethrough, links, ordered/nested lists, code blocks, and blockquotes become Markdown; tables are kept as HTML. Native Word equations (OMML) are restored as LaTeX — inline $...$, display $$...$$. Optionally also writes the .md to disk.

ParameterTypeDescription
input_path *stringPath to the .docx file.
output_pathstringOptional path to also write the Markdown result to.

markdown_to_latex

Convert Markdown to a complete, compilable LaTeX document (documentclass article, amsmath, listings, booktabs, hyperref). Headings become sections, code blocks become lstlisting environments, tables become tabular, math passes through for amsmath.

ParameterTypeDescription
markdown *stringThe Markdown source text.
output_pathstringOptional path to also write the .tex result to.