markdowntolatexconverter
v1.0.0
Published
Markdown to LaTeX Converter.
Maintainers
Readme
Markdown to LaTeX Converter
A Node.js package for converting Markdown files into LaTeX documents. This tool parses Markdown content, generates LaTeX code, and handles various Markdown elements like headers, lists, images, links, tables, and code blocks.
Features
- Converts Markdown headers (
#,##,###, etc.) to LaTeX sections (\chapter,\section, etc.). - Converts unordered (
*,-) and ordered lists (1.) to LaTeXitemizeandenumerate. - Supports inline styles like bold, italic, and inline code.
- Converts links and images to LaTeX
\hrefand\includegraphics. - Converts Markdown tables into LaTeX tables.
- Handles code blocks as
verbatimenvironments. - Escapes LaTeX special characters in the Markdown content.
- Preserves math expressions (single
$...$for inline math, and$$...$$for block math).
Installation
npm install markdowntolatexconverterUsage
node MarkdownToLatexConverter.js <input-file.md> [output-file.tex]