md_convert
Convert plain text or files (.txt, .json, .csv, .html, .md) into Wiki-ready Markdown and save as a .md file. Supports optional title, output path, and Sublime preview.
Instructions
Convert plain text content or a file (.txt/.json/.csv/.html/.md and more) into properly formatted Wiki-ready Markdown. Writes a .md file under MARKITDOWN_OUTDIR (or outputPath). Output is pure Markdown so Sublime MarkdownPreview can use this package styles/ CSS + Copy Markdown / Copy Formatted buttons.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional document title (H1). Auto-detected from banners/filename when omitted. | |
| content | No | Raw text / note content to convert (when not using inputPath). | |
| inputPath | No | Path to a source file (.txt, .json, .csv, .html, .md, …). Absolute or relative to MARKITDOWN_WORKDIR. | |
| overwrite | No | If false, refuse to overwrite an existing output file (default true). | |
| outputPath | No | Optional output .md path. Absolute or relative to MARKITDOWN_OUTDIR. Default: derived from title or input file name. | |
| sourceLabel | No | Optional source label stored in a blockquote (e.g. original .txt name). | |
| openInSublime | No | If true, open the generated .md in Sublime Text so Ctrl+Shift+M preview uses shared styles + Copy toolbar. |