Skip to main content

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)

Source distribution for ksconf-jinja-markdown 1.2.0
File Size Uploaded
ksconf-jinja-markdown-1.2.0.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ksconf-jinja-markdown 1.2.0
File Interpreter ABI Platform
ksconf_jinja_markdown-1.2.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page