JSPM

text-style-saver

1.0.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q38054F
    • License MIT

    A lightweight Markdown to HTML parser without external dependencies to save blog styles, font size etc as string in sql/nosql database.

    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!

    npm version

    A lightweight Markdown to HTML parser without external dependencies.

    Installation

    To install the TextStyleSaver package, use npm:

    npm install TextStyleSaver

    Usage

    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.