.Dd December 18, 2021 .Dt BLAG 1 .Os .Sh NAME .Nm nihdoc .Nd convert plaintext to HTML .Sh SYNOPSIS .Nm nihdoc < .Ar in.txt > .Ar out.html .Sh DESCRIPTION .Nm is a very basic plaintext-to-HTML converter. It reads from stdin and writes to stdout so that it can .Xr pledge 2 to only stdio. Any arguments given will produce an error. .Pp Like markdown, wrapped lines are supported, and a blank line is needed to start a new paragraph. .Pp The following markup is supported: .Pp .Bl -bullet -indent .It Inline *bold*, _italics_, `code` (bold/italics disabled in code) .It backslash to escape .It [alexkarle.com] bare links and [description](alexkarle.com) .It # headers (each # adds a level) .It Ordered and unordered lists via 1-9. and - respectively. Nesting supported only within the same type (no mixing, yet). .It Code blocks (start line with TAB) .It Block quotes (start line with >) .El .Sh SEE ALSO .Xr Markdown.pl 1 , .Lk https://alexkarle.com/blog/mdoc-to-nihdoc.html