Markdown rendering support for Jinja2 templates within Ksconf
Project description
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
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
Built Distribution
Close
Hashes for ksconf-jinja-markdown-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 439d0ce3eca6a5c11566730d026631ad29f79bee4518de25386cb2323dcc1088 |
|
MD5 | 27ccf79b4f0b901c8807b0084fe7326c |
|
BLAKE2b-256 | a22f61a23fd7f58ec136456e2d6c9bd3e58549a31d3e7a182e9f19f226d80845 |
Close
Hashes for ksconf_jinja_markdown-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c83b29de1f12926b994cb7b23c9214d0f1531dd0726c9135d192846fcf58621 |
|
MD5 | b6464df88d63fc57d2965936d9897e54 |
|
BLAKE2b-256 | ee3e66127dee0d89c385371a7481fade66dcb03cb000b1df4e3fbffd3c385c07 |