Convert Markdown to HTML
markdown_to_htmlConvert Markdown files to HTML with optional CSS styling, standalone document generation, and strict validation.
Instructions
Convert a Markdown file to HTML format using Pandoc. Arguments:
inputPath (string, required): Path to the input Markdown file
outputPath (string, optional): Output path. Defaults to same name with .html
cssPath (string, optional): Path to a CSS stylesheet to embed
standalone (boolean, optional): Generate a complete HTML document with head/body. Defaults to true
strictMarkdown (boolean, optional): If true, reject files with structural issues (unclosed code blocks). Defaults to false
overwrite (boolean, optional): Allow overwriting. Defaults to false
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputPath | Yes | Path to the input Markdown file (relative to workspace) | |
| outputPath | No | Output HTML path (relative to workspace). Auto-derived if omitted. | |
| cssPath | No | Path to a CSS stylesheet file (relative to workspace) | |
| standalone | No | Generate a standalone HTML document with head/body | |
| strictMarkdown | No | If true, reject input if Markdown has structural issues like unclosed code blocks. | |
| overwrite | No | Allow overwriting existing output file. Defaults to false. |