j2m

package module
v0.0.0-...-85c0e81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 4 Imported by: 1

README

GoDoc GoReportcard

jira-to-md

JIRA to MarkDown text format converter

Golang tool to convert from JIRA Markdown text formatting to GitHub Flavored MarkDown.

Credits

This fun toy was heavily inspired by the J2M project by Fokke Zandbergen (http://j2m.fokkezb.nl/). Major credit to Fokke, kylefarris (and other contributors) for establishing the RexExp patterns for this to work. The maintained JavaScript fork I based this on is here

Supported Conversions

  • Headers (H1-H6)
  • Bold
  • Italic
  • Bold + Italic
  • Un-ordered lists
  • Ordered lists
  • Programming Language-specific code blocks (with help from herbert-venancio)
  • Inline preformatted text spans
  • Un-named links
  • Named links
  • Monospaced Text
  • Citations (currently kinda buggy)
  • Strikethroughs
  • Inserts
  • Superscripts
  • Subscripts
  • Single-paragraph blockquotes
  • Tables
  • Panels

How to Use

Markdown String
**Some bold things**
*Some italic stuff*
## H2
<http://google.com>
Atlassian Wiki MarkUp Syntax (JIRA)

We'll refer to this as the jira variable in the examples below.

*Some bold things**
_Some italic stuff_
h2. H2
[http://google.com]
Examples
cat j2m.jira | j2m

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JiraToMD

func JiraToMD(str string) string

JiraToMD takes a string in Jira Markdown, and outputs Github Markdown

Types

This section is empty.

Directories

Path Synopsis
/usr/bin/env go run "$0" "$@" ; exit "$?"
/usr/bin/env go run "$0" "$@" ; exit "$?"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL