ksconf-jinja-markdown
Add Markdown rendering support to the Ksconf packing ecosystem.
This allows rendering markdown into html when using Jinja (*.j2) files within
a rendered Splunk app using the ksconf package command.
Jinja filter
markdown2html- Filter used to convert markdown text into HTML output.
Install
pip install -U ksconf-jinja2-markdown
Installation can be validated by running: ksconf --version
Example Usage
Simple XML with an input
Contents of my_app/default/data/view/my_dashboard.xml.j2:
<dashboard>
<row>
<html>
{{ description | markdown2html }}
</html>
</row>
</dashboard>
Contents of inputs.json:
{
"description": "# Title\n## Header 2\n* bulleted\n* list\n"
}
ksconf package --enable-handler=jinja --template_vars @inputs.conf my_app
Release steps
python setup.py build
python setup.py bdist_wheel sdist
twine upload dist/ksconf_jinja_markdown-*any.whl dist/ksconf-jinja-markdown-*.tar.gz
Metadata
Release files for ksconf-jinja-markdown 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ksconf-jinja-markdown-1.2.0.tar.gz | 2.4 kB | Without provenance | Details for ksconf-jinja-markdown-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ksconf_jinja_markdown-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for ksconf_jinja_markdown-1.2.0-py3-none-any.whl |
Total release size: 5.4 kB
Release files / ksconf-jinja-markdown-1.2.0.tar.gz
| Download URL | ksconf-jinja-markdown-1.2.0.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd7e2e42366453394b555fe00e469ce1bd0fed4cd3bdbc26ba4e4b44f1825d7d
|
|
BLAKE2b-256 checksum How to use checksums |
23a11bc7a43b8f044309f7546cb9716de3cf9990fe3d9508cae73333749423d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / ksconf_jinja_markdown-1.2.0-py3-none-any.whl
| Download URL | ksconf_jinja_markdown-1.2.0-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7220d2e357b4b5e364ef15069b69f06db0d4c6af8341a27e8fc66af7c1183085
|
|
BLAKE2b-256 checksum How to use checksums |
dd2a37ab7a3e902ff1b58468ab7161aed0a06025cd076c7285f7cab12dba48d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for ksconf-jinja-markdown 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.