go install gitlab.com/golang-commonmark/mdtool@latest
Use
$ mdtool -help
Usage: mdtool [options] [inputfile|URL] [outputfile]
Options:
+h[tml] Enable raw HTML
+l[inkify] Enable autolinking
+ta[bles] Enable GFM tables
+ty[pographer] Enable typographic replacements
+a[ll] All of the above
+x[html] XHTML output
-help Display this help
Use 'browser:' in place of the output file to see the output in a browser.