A library for parsing customizable WordPress-style shortcodes.
Project description
A library for parsing customizable WordPress-style shortcodes. Useful as a drop-in component in text-processing applications.
Supports shortcodes with space-separated positional and keyword arguments:
[% tag arg1 "arg 2" key1=arg3 key2="arg 4" %]
Shortcodes can be atomic or block-scoped and can be nested to any depth. Innermost shortcodes are processed first:
[% tag %] ... content with [% more %] shortcodes ... [% endtag %]
Shortcode syntax is customizable:
<tag arg="foo"> ... </tag>
See the project’s Github homepage for further details.
Note that this package requires Python 3.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shortcodes-5.1.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for shortcodes-5.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d88bf67d46b7eeeeac64c0ab8a8f02e32709f3d9ef9fcaef551e131541c76bcb |
|
MD5 | f67186566affa812da1b03a581b5fd28 |
|
BLAKE2b-256 | 17dbb48de4cf4f5e81cfcf6a79e1692c22b259aa80a79c7edf808250feb75c41 |