This is a simple console application that converts a subset of Markdown to HTML or ANSI formatted text. It supports bold, italic, and preformatted text, as well as paragraph separation.
- Clone the repository.
- Ensure Node.js is installed.
- Run the application:
- To output to stdout:
node src/app.js /path/to/markdown/file.md [--format html|ansi]
- To output to a file:
node src/app.js /path/to/markdown/file.md --out /path/to/output/file.html [--format html|ansi]
- To output to stdout:
- The application reads a Markdown file and converts it to either HTML or ANSI formatted text.
- If the Markdown is invalid, an error is printed to stderr.
- Run the tests:
node tests/app.test.js