txt2tags

Converts plain text files to multiple output formats like HTML, LaTeX, and Markdown

brewmacoslinux
Try with needOr install directly
Source

About

Conversion tool to generating several file formats

Commands

txt2tags

Examples

Convert a text file to HTML$ txt2tags -t html input.txt
Convert a text file to LaTeX/PDF format$ txt2tags -t latex input.txt
Convert a text file to Markdown with output file specified$ txt2tags -t md -o output.md input.txt