wordpress-shortcode

Utility functions for parsing and handling WordPress shortcodes in JavaScript.

Usage no npm install needed!

<script type="module">
  import wordpressShortcode from 'https://cdn.skypack.dev/wordpress-shortcode';
</script>

README

wordpress-shortcode

NPM

Sometimes you need a shortcode parser from WordPress because you’re working with WXR files in javascript.

Lifted shamelessly from WordPress core.

Bugs

I don’t support this code. If there are bugs then open an issue with WordPress core; if this code is out of date then make a PR and I’ll be happy to update this package.