1.1.4 • Published 5 years ago

inline-md v1.1.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

inline-md

npm bundle size npm bundle size NPM

<html>
<head>
  <script src="https://unpkg.com/inline-md@latest/dist/index.js"></script>
  <script src="https://unpkg.com/inline-md@latest/dist/webcomponent.js"></script>
</head>

<body>
  <div data-markdown>

  # Hello World

  The content of this element will be converted from markdown
  to html when the page loads

  </div>
  
  <markdown-text>

  # Hello Web Component

  The `markdown-text` webcomponent works too

  </markdown-text>

</body>
<html>

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

License

MIT

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago