harmonize_markdown
Standardize and normalize Markdown syntax without changing the document's meaning. Re-formats headers (ATX-style), normalizes list markers to '-', enforces fenced code blocks with backticks, and applies consistent indentation. Side effects: when output_path is provided, writes the harmonized Markdown to disk. When output_path is omitted, returns the harmonized text as a string with no file I/O.
convert_to_txt
Convert Markdown to plain text by stripping all formatting — removes headers, bold/italic markers, links, images, code fences, and HTML tags. The result is a human-readable plain-text string with no markup.
convert_to_rtf
Convert Markdown to Rich Text Format (RTF). Produces an RTF document string preserving basic formatting: bold, italic, headers, lists, and code blocks.
convert_to_latex
Convert Markdown to LaTeX source code. Produces a LaTeX document fragment with \section, \textbf, \textit, list environments, verbatim code blocks, and table environments. KaTeX math expressions are passed through as native LaTeX math.
convert_to_docx
Convert Markdown to a Microsoft Word DOCX file. Produces a binary .docx document with styled headings, bold/italic text, numbered and bulleted lists, and code formatting. Binary format — output_path should almost always be provided.
convert_to_pdf
Convert Markdown to a PDF document. Renders the Markdown as styled HTML (GFM tables, KaTeX math) and prints it to PDF via a headless Chromium browser. Binary format — output_path should almost always be provided.
convert_to_image
Convert Markdown to a PNG image. Renders the Markdown as styled HTML (GFM tables, KaTeX math) and takes a full-page screenshot via a headless Chromium browser. Binary format — output_path should almost always be provided.
convert_to_csv
Extract tables from Markdown and convert them to CSV format. Parses GFM pipe-tables from the input and outputs comma-separated values. Non-table content is ignored.
convert_to_json
Convert Markdown to a structured JSON representation. Parses the document into a JSON object with sections, headings, paragraphs, lists, code blocks, and tables.
convert_to_xml
Convert Markdown to an XML document. Produces well-formed XML with an <?xml?> declaration and structured elements including section, heading, paragraph, list, code, and table.
convert_to_xlsx
Convert Markdown tables to a Microsoft Excel XLSX spreadsheet. Each table becomes a sheet in the workbook. Non-table content is ignored. Binary format — output_path should almost always be provided.
convert_to_html
Convert Markdown to a complete, styled HTML document. Renders GFM (tables, task lists, strikethrough) and KaTeX math into semantic HTML with an embedded stylesheet.
convert_to_md
Export Markdown content, optionally harmonizing its formatting first. When harmonize=false (default), returns the input unchanged. When harmonize=true, applies normalization.
generate_html
Generate a complete, self-contained HTML document from Markdown with all styles inlined. Returns the HTML string directly — no file is written to disk. This tool is read-only and performs no file I/O.
convert_to_slack
Convert Markdown to Slack mrkdwn format. Bold as *, links as <url|text>, headers as bold text.
convert_to_discord
Convert Markdown to Discord-compatible format with styled bold/underline headers and preserved code blocks.
convert_to_jira
Convert Markdown to JIRA wiki markup with h1./h2. headings, {code} blocks, and [text|url] links.
convert_to_confluence
Convert Markdown to Confluence wiki markup with {info}, {note} panels and {code:language=x} syntax.
convert_to_asciidoc
Convert Markdown to AsciiDoc format with = headers, ---- code blocks, url[text] links, and image:: directives.
convert_to_rst
Convert Markdown to reStructuredText (RST) format with underlined headers, .. code-block:: directives, and RST reference syntax.
convert_to_mediawiki
Convert Markdown to MediaWiki markup with == headers, '''bold''', <syntaxhighlight> tags, and {| wikitable syntax.
convert_to_bbcode
Convert Markdown to BBCode format with [b], [i], [code], [url], [img] tags for phpBB/vBulletin forums.
convert_to_textile
Convert Markdown to Textile markup format for Redmine, Basecamp, and CMS platforms.
convert_to_orgmode
Convert Markdown to Emacs Org Mode format with * headers, #+BEGIN_SRC/#+END_SRC code, and [[url][text]] links.
convert_to_email_html
Convert Markdown to email-optimized HTML with all styles inlined, compatible with Outlook, Gmail, and Apple Mail.
html_to_markdown
Convert HTML content (full document or fragment) back to Markdown. Handles headings, tables, lists, code blocks, links, images, and inline formatting.
repair_markdown
Repair broken Markdown from LLM output or copy-paste. Fixes unclosed code fences, broken tables, stray emphasis markers, missing heading spaces, and broken links.
lint_markdown
Lint Markdown and report issues as a JSON array with line number, severity, rule name, message, and fixable flag.
extract_code_blocks
Extract all code blocks from Markdown. Returns JSON array with language, code content, and start/end line numbers.
extract_links
Extract all links and images from Markdown. Returns JSON with text, URL, line number, and type (inline, reference, image, autolink).
generate_toc
Generate a Markdown Table of Contents from headings with configurable max_depth (1-6) and indented links.
analyze_document
Analyze Markdown and return comprehensive statistics: line/word/character/paragraph/sentence counts, heading/code/table/link/image counts, and estimated reading time.
extract_structure
Extract full document structure overview: statistics, heading outline, code block summary, and link summary.
batch_convert
Batch-convert multiple Markdown documents to one or more output formats in a single call. Accepts an array of items (each with markdown content and optional title) and an array of target format IDs. Supports 22 formats: txt, csv, json, xml, xlsx, latex, rtf, docx, pdf, html, md, email, slack, discord, jira, confluence, asciidoc, rst, mediawiki, bbcode, textile, orgmode. Errors are isolated per item+format so one failure does not stop the rest. When output_dir is provided, files are written to disk; otherwise binary formats are returned as base64 and text formats inline. Returns a summary (total_conversions, successful, failed) plus per-item results.