Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-09T05:40:45.000Z (3 months ago)
- Last Synced: 2024-11-09T06:26:34.253Z (3 months ago)
- Topics: extension, marked, xhtml
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/marked-xhtml
- Size: 4.59 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("---");
//
```