Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexkrolick/inline-md
convert markdown text embedded in html to html elements
https://github.com/alexkrolick/inline-md
html markdown webcomponent
Last synced: about 1 month ago
JSON representation
convert markdown text embedded in html to html elements
- Host: GitHub
- URL: https://github.com/alexkrolick/inline-md
- Owner: alexkrolick
- Created: 2019-07-05T23:32:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T07:31:35.000Z (almost 2 years ago)
- Last Synced: 2024-10-01T03:03:24.345Z (about 2 months ago)
- Topics: html, markdown, webcomponent
- Language: JavaScript
- Size: 622 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# inline-md
![npm bundle size](https://img.shields.io/bundlephobia/min/inline-md.svg)
![npm bundle size](https://img.shields.io/bundlephobia/minzip/inline-md.svg)
![NPM](https://img.shields.io/npm/l/inline-md.svg)```html
# Hello World
The content of this element will be converted from markdown
to html when the page loads
# Hello Web Component
The `markdown-text` webcomponent works too
```
## Possible Issues
- Both scripts immediately parse the DOM and are meant to be used standalone without additional JS. Pull Request welcome to refactor the code to export side-effect-free versions.
- Code is written with ES2015+ syntax that may not work without polyfills in older browsers like IE11## Alternatives
- https://github.com/vanillawc/wc-markdown
## License
MIT