Skip to main content

A mostly functional plugin for mistune to render Jira's markup language

Project description

mistune-jira

A Jira Rendering Engine for Mistune.

Mistune is awesome. It does an amazing job of parsing markdown. It has the ability to take those documents and export them in different sytaxes. This is an attempt to write a parser for Atlassian's Markup Language used in Jira and some other tools.

The goal is to be able to have data in markdown and then use that markdown to create a well formatted ticket in Jira.

Hopefully Jira will someday fully support markdown and make this project irrelevant.

Usage

import mistune
import mistune_jira

text = '''
# Lorem Ipsum

This is some sample markdown. [Say hi to google](https://www.google.com) as an example link
to be converted. 

HR line 
---

* a list of cool things
* doggies
    * Little Doggies (Won't yet render correctly)
    * Shaggy Doggies
    * Grumpy Doggies
* spaceships
* $2 bills

'''

rend = mistune_jira.JiraRenderer()

markdown_parser = mistune.Markdown(renderer=rend)

jira_compat = markdown_parser(text)

print(jira_compat)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mistune_jira-2023.12.6.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

mistune_jira-2023.12.6.0-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page