There are a lot of markdown-related packages available, at least these two have a markdown
command:
$apt search markdown
...
discount/jammy,now 2.2.7-2 amd64 [installed]
implementation of the Markdown markup language in C
...
markdown/jammy,jammy 1.0.1-10.1 all
Text-to-HTML conversion tool
...
$ apt show discount
Package: discount
Version: 2.2.7-2
Priority: optional
Section: universe/text
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Alessandro Ghedini <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 113 kB
Depends: libc6 (>= 2.34), libmarkdown2 (= 2.2.7-2)
Conflicts: libtext-markdown-perl, markdown
Homepage: http://www.pell.portland.or.us/~orc/Code/discount/
Download-Size: 26,0 kB
APT-Manual-Installed: yes
APT-Sources: http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
Description: implementation of the Markdown markup language in C
Discount is an implementation of John Gruber's Markdown markup language. It
implements all of the language described in the Markdown syntax document and
passes the Markdown 1.0 test suite.
.
This package provides the discount executables.
$ apt show markdown
Package: markdown
Version: 1.0.1-10.1
Priority: optional
Section: universe/web
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Matt Kraai <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 58,4 kB
Depends: perl (>= 5.6.0-0.1)
Homepage: http://daringfireball.net/projects/markdown/
Download-Size: 17,6 kB
APT-Sources: http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
Description: Text-to-HTML conversion tool
Markdown is a text-to-HTML conversion tool for web writers. It
allows you to write using an easy-to-read, easy-to-write plain text
format, then convert it to structurally valid XHTML (or HTML).
$ discount
Command 'discount' not found, did you mean:
$ markdown --version
markdown: discount 2.2.7 GITHUB_CHECKBOX
The former has documentation at https://www.pell.portland.or.us/~orc/Code/discount/ and a code mirror at https://github.com/Orc/discount.
markdown -o <out>.html <in>.md
writes the file, but to my surprise does not generate a complete HTML file (DOCTYPE, <html>
etc.).
Am I missing an option? How can the output be wrapped to make it valid HTML?