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.6.16.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

mistune_jira-2023.6.16.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file mistune_jira-2023.6.16.3.tar.gz.

File metadata

  • Download URL: mistune_jira-2023.6.16.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for mistune_jira-2023.6.16.3.tar.gz
Algorithm Hash digest
SHA256 890aba19928b99cedf7b2c9c2b08e13f25c78dc5af1ceebba2c2cb3f0f125745
MD5 8a3c23d1f8ce3f0aa53235654dccd316
BLAKE2b-256 e9ab653eee57735963d1eea7dc79769a6ff4b7adfa31c56454b2eee6459cbcb3

See more details on using hashes here.

Provenance

File details

Details for the file mistune_jira-2023.6.16.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mistune_jira-2023.6.16.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a147ffedaa1f1df0d9a03c559191049262d86c79e79455baf7d79672aef7ec88
MD5 c3d88ece1b5d339c1c3a078371d208fe
BLAKE2b-256 844c03138e7e5ab9643f78e00a40dbe55a14a2d7187d19b7411c0c99eb53ddc7

See more details on using hashes here.

Provenance

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