Package Exports
- text-style-saver
- text-style-saver/TextStyleSaver.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (text-style-saver) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Assalamualaikum! Presenting TextStyleSaver!
A lightweight Markdown to HTML parser without external dependencies.
Installation
To install the TextStyleSaver package, use npm:
npm install TextStyleSaverUsage
const { TextStyleSaver } = require("TextStyleSaver");
const text = "# Hello, **Markdown**!";
const processedText = TextStyleSaver(text);
console.log(processedText);The TextStyleSaver function accepts a Markdown string as input and returns the parsed HTML.
Features
- Supports headings with different levels (
#,##,###, etc.). - Handles bold and italic formatting (
**bold**,*italic*). - Converts unordered lists (
* item) to<ul>tags. - Converts ordered lists (
1. item) to<ol>tags.
Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.
Author
Created with love by AbdullahWins.
License
This project is licensed under the MIT License. See the LICENSE file for more information.