main

Simple CLI for Markless Converts Markless documents into HTML.

If no input file is passed, it reads from standard input. If no output file is passed, it writes to standard output.

Usage:

markless [flags]

Flags:

-h --help
     Show this help screen.
-s --safe
     Uses the safe option set.
-m --message
     Uses the message option set.
--input file
     The input file to parse.
     If not given is read from standard input.
--output file
     The output file to write to.
     If not given is written to standard output.

You can easily make use of the resulting binary for pipe processing too:

echo "# Hello" | markless | tidy -q --indent auto

Which will print the resulting complete HTML file to standard output:

<!DOCTYPE html>
<html>
<head>
  <meta name="generator" content=
  "HTML Tidy for HTML5 for Linux version 5.7.45">
  <title></title>
</head>
<body>
  <article>
    <h1 id="hello">Hello</h1>
  </article>
</body>
</html>