Skip to content

VadimOpt/markdown-to-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown to HTML and ANSI Converter

Description

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.

Build and Run

  1. Clone the repository.
  2. Ensure Node.js is installed.
  3. 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]

Usage

  • 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.

Running Tests

  1. Run the tests:
    node tests/app.test.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published