Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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