m2h

command module
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

m2h

A small, simple markdown to htm/html converter.

Features

  • converts a markdown file (or stdin) to a single HTML document on stdout
  • converts any source file as a highlighted code page with -l <language>
  • embeds local images as base64 data URIs
  • GitHub Flavored Markdown (tables, strikethrough, task lists, autolinks) with auto heading IDs
  • syntax highlighting via chroma, selectable style with -s (e.g. -s dracula)
  • auto-detects mermaid and d2 diagrams and wires up the required scripts
  • KaTeX math rendering (auto-detected)
  • optional paged.js layout for nicer PDF printing with -p (not compatible with mermaid)
  • open the result straight in the browser with -b

Usage

$ m2h file1.md > file1.htm

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL