1.0.1 • Published 5 months ago

markdown-file-to-html-converter v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

markdown-file-to-html-converter

A simple Markdown to HTML converter npm package.

Installation

npm install markdown-file-to-html-converter

Usage

Example

const { convertMarkdownToHTML, convertFileToHTML } = require('markdown-to-html-converter');

// Convert Markdown file to HTML file
convertFileToHTML('test.md', 'output.html');
console.log('Conversion from markdown to html successful. Check output.hmtl file.');

// Convert Markdown text to HTML
const markdown = '# Heading 1\nThis is a **test** paragraph.'
const htmlcontent = convertMarkdownToHTML(markdown)
console.log('Converted Markdown to HTML:\n', htmlcontent);

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Abdul-Hafiz Aderemi

Dependencies

1.0.1

5 months ago

1.0.0

5 months ago