Skip to content

jrcespedes252-hub/markdown-to-html-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown to HTML Converter (Node.js)

This is a simple command-line app that converts any Markdown (.md) file into a styled HTML (.html) file using Node.js and the markdown-it library.

Perfect for beginners learning how to use JavaScript, Node.js, and Visual Studio Code.


🚀 Features

  • Converts .md files into readable, styled .html pages
  • Automatically wraps the content in a complete HTML document
  • Adds basic CSS for clean formatting

📦 Requirements

  • [Node.js]
  • Visual Studio Code

🛠️ Setup Instructions

1. Clone or Download the Project

Create a folder and open it in Visual Studio Code.

2. Open the VS Code Terminal

Use Terminal > New Terminal

3. Initialize a Node.js Project

npm init -y

4. Install Dependencies

npm install markdown-it

🧾 How to Use

1. Create a Markdown File

Example: test.md

2. Run the Converter

node convert.js test.md test.html

3. Open the Result

  • Find the generated test.html file in your folder.
  • Double-click to open it in your browser.

🧠 How It Works

  • The script reads your .md file.
  • It uses markdown-it to convert Markdown to HTML.
  • It wraps the HTML inside a full document with CSS styling.
  • It saves the result as a .html file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors