Open lassik opened 5 years ago
Preview Unix manual page written directly in nroff
using man
/mdoc
macros:
(defun my-live-preview-manpage (src-buf)
(insert (with-current-buffer src-buf (buffer-string)))
(shell-command-on-region (point-min) (point-max) "mandoc" (current-buffer))
(Man-fontify-manpage))
One can also use nroff -man
instead of mandoc
in the above shell commands. Formatting will be slightly different.
Preview Unix manual page written in AsciiDoc:
MacOS packages:
brew install asciidoctor mandoc