marked-xhtml
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

marked-xhtml

Add closing slash to tags like: hr, br, img, and input

Usage

import { marked } from "marked";
import { markedXhtml } from "marked-xhtml";

// or UMD script
// <script src="https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js"></script>
// <script src="https://cdn.jsdelivr.net/npm/marked-xhtml/lib/index.umd.js"></script>

marked.use(markedXhtml());

marked.parse("---");
// <hr/>

/marked-xhtml/

    Package Sidebar

    Install

    npm i marked-xhtml

    Weekly Downloads

    2,250

    Version

    1.0.9

    License

    MIT

    Unpacked Size

    5.88 kB

    Total Files

    7

    Last publish

    Collaborators

    • tonybrix