• This repository has been archived on 27/Jul/2020
  • Stars
    star
    258
  • Rank 157,682 (Top 4 %)
  • Language
    JavaScript
  • Created about 11 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Convert from JIRA text formatting to GitHub Flavored MarkDown and back again

J2M

JIRA to MarkDown text format converter

Convert from JIRA text formatting to GitHub Flavored MarkDown and back again. Just because I got tired of reformatting text between GitHub (PR's) and JIRA.

Library

Installation

The J2M library is available via bower (for frontend usage) and npm (for node usage):

$ bower install J2M --save
$ npm install j2m --save

Usage

J2M exposes 2 methods: toJ and toM for converting to Jira markup and to markdown.

  • J2M.toJ(markdown : string) : string
  • J2M.toM(jira : string) : string

Usage Example:

var J2M = require('J2M');

var input = '## cool markdown';
var jira = J2M.toJ(input);
var markdownAgain = J2M.toM(jira);

CLI

J2M is also available as a command line utility.

Installation

$ npm install -g j2m

Usage

$ j2m [--toM|--toJ] [--stdin] $filename 

Options: 
--toM, -m:    Treat input as jira text and convert it to Markdown 
--toJ, -j:    Treat input as markdown text and convert it to Jira 
--stdin:      Read input from stdin. In this case the give filename is ignored 

Usage Example

# convert notes to jira markup and copy it to the clipboard (mac)
j2m --toJ notes.md | pbcopy

# retrieve some file in jira markup and save it as markdown
curl http://someserver.com/jira.txt | j2m --toM --stdin > notee.md

Website

Use J2M online at: http://j2m.fokkezb.nl/ (updated automagically)

Roadmap

I hope to extend TiCons with the following features:

  • Add as much syntax support as time allows me and need drives me :)

Feel free to mail me or fork the code and send a pull-request.

License

Copyright 2013 Fokke Zandbergen

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

More Repositories

1

TiCons-Server-PHP

⛔️ REPLACED BY NODE.JS VERSION:
PHP
127
star
2

nl.fokkezb.loading

The widget provides a simple loading mask that can be easily styled and configured.
JavaScript
94
star
3

Tracker

Tracker 4 Compassion
JavaScript
67
star
4

nl.fokkezb.cachedImageView

Alloy version of the best practice to cache remote images locally.
JavaScript
53
star
5

libreview-unofficial

LibreView Unofficial API Documentation.
JavaScript
48
star
6

IconFont

CLI that converts Icon Font CSS StyleSheets into CommonJS modules exporting the unicodes by name
CSS
43
star
7

Tutorial

Titanium Alloy Tutorial
JavaScript
39
star
8

FontAwesomeJS

Generates a CommonJS module exposing the UniCode strings for all Font Awesome icons.
PHP
30
star
9

ARCHIVED-Titanium-Docs

[ARCHIVED] Desktop App for Offline Titanium Docs
23
star
10

translator

Simple PHP script to let people translate your app's i18n files.
PHP
20
star
11

Meetup

A simple PHP library for the Meetup API
PHP
18
star
12

nl.fokkezb.tweetsView

Alloy widget for a in-app twitter-like experience
JavaScript
16
star
13

nl.fokkezb.viewpager

An Alloy widget wrapping the ViewPager module for Google Play like scrolling tabs.
JavaScript
15
star
14

ti-64

Check all Appcelerator Titanium project and/or global modules for 64-bit iOS support.
JavaScript
14
star
15

tickets

Retrieves the state of JIRA tickets refered to in your code.
JavaScript
13
star
16

nl.fokkezb.browserView

Alloy widget for a browserview
JavaScript
11
star
17

cTSS

Convert CSS to Titanium TSS
JavaScript
10
star
18

mqtt2http

Forward MQTT messages as HTTP requests
JavaScript
10
star
19

9patch

Generate a 9-patch image from an iOS image and its left and top end caps
PHP
9
star
20

TiCons-Server-Arrow

⛔️ DEPRECATED BY:
HTML
9
star
21

css-layout-ti

Facebook's CSS-layout for Titanium
JavaScript
6
star
22

nl.fokkezb.html2as.widget

Widget wrapping the HTML 2 Attributed String module, providing cross-platform HTML attribute for labels.
JavaScript
5
star
23

Alloy-Theming-Widgets

Workaround for theming widgets
JavaScript
4
star
24

DMC13-Alloy

Alloy example for Dutch Mobile Conference 2013
JavaScript
4
star
25

ti-proxy

Parse JavaScript to proxy Titanium API calls
JavaScript
4
star
26

appc-compat

Intermediator for the new Appcelerator "appc" CLI and the old "ti", "alloy" and "acs" CLI.
JavaScript
4
star
27

AlloyDemo

Code accompanying a presentation on Alloy features
JavaScript
3
star
28

git-heroes

List git contributors between two revisions.
JavaScript
3
star
29

Ganttoday

Extension for the Gantter project to display today's tasks
PHP
3
star
30

nl.fokkezb.label

The widget provides a replacement for <Label /> to support text shadows on Android & BlackBerry.
JavaScript
3
star
31

ti-htmlparser2

Forgiving HTML/XML parser for Titanium SDK
JavaScript
2
star
32

nl.fokkezb.alloyCarbonized

A simple test case to speed up Alloy using Carbon
JavaScript
2
star
33

TweetUp

Simple PHP script that automagically publishes Meetup group activity to Twitter
PHP
2
star
34

arrow-auth-platform

Arrow Platform Authentication Plugin
JavaScript
2
star
35

crux

JavaScript
2
star