https://github.com/markedjs/marked-xhtml
https://github.com/markedjs/marked-xhtml
extension marked xhtml
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/markedjs/marked-xhtml
- Owner: markedjs
- License: mit
- Created: 2023-04-01T18:28:10.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-05T18:58:31.000Z (about 1 year ago)
- Last Synced: 2025-05-05T19:55:42.478Z (about 1 year ago)
- Topics: extension, marked, xhtml
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/marked-xhtml
- Size: 5.88 MB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# marked-xhtml
Add closing slash to tags like: `hr`, `br`, `img`, and `input`
# Usage
```js
import { marked } from "marked";
import { markedXhtml } from "marked-xhtml";
// or UMD script
//
//
marked.use(markedXhtml());
marked.parse("---");
//
```