# html2jira

> A simple converter from HTML to Jira Markup

Latest version **1.0.11** (published 2020-04-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install html2jira
pnpm add html2jira
yarn add html2jira
bun add html2jira
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.11 |
| Published | 2020-04-06 |
| First published | 2019-09-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 14.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kenn Roberson |
| Maintainers | roberso |
| Keywords | jira, html |

## Links

- npm: https://www.npmjs.com/package/html2jira
- Repository: https://github.com/roberso/html2jira
- Homepage: https://github.com/roberso/html2jira#readme
- Issues: https://github.com/roberso/html2jira
- npm.io page: https://npm.io/package/html2jira

## Dependencies (1)

- [html-dom-parser](https://npm.io/package/html-dom-parser.md) ^0.2.2

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.11 (latest) — 2020-04-06
- 1.0.10 — 2019-10-01
- 1.0.9 — 2019-09-24
- 1.0.8 — 2019-09-24
- 1.0.7 — 2019-09-23
- 1.0.6 — 2019-09-23
- 1.0.5 — 2019-09-20
- 1.0.3 — 2019-09-19
- 1.0.2 — 2019-09-19
- 1.0.1 — 2019-09-19

## README

# html2jira

  A simple HTML to Jira markdown class.  This was created as part of an effort to put a web front end on a process that 
  will create Jira Epics on the back end.  As part of that, the web front end uses CKEditor to allow for the user to put
  in rich text information.  After failing to find anything usable on the npm registry, I decided to write my own.
  Currently it only support the following tags:
  - Paragraph `<p>`
  - Image `<img>`
  - Bold `<b> <strong>`
  - Italics `<i>`
  - Underline `<u>`
  - Lists (order and unordered) `<ul> <ol>` (nested)
  - Line Breaks `<br>`
  - Horizonal Line `<hr>`
  - Headings `<h1>, <h2>, ...`
  - Links to external sites `<a href="...">some text</a>`
  - (not yet) Simple non-nested Tables `<table><tr><th></th></tr><tr><td></td></tr><table>`

## Installation

`npm install --save html2jira`

## Example

```js
let { HTML2Jira } = require("HTML2Jira")
const html = '<h1>hello</h1><p>this is my page </p><ol><li>first item</li><li>second item</li></ol>'
let converter = new HTML2Jira()
let res = converter.toJira(html)
```

## publish updated to NPM
- npm run prepublish
- npm login
- npm version patch
- npm publish

## Contributors

- Kenn Roberson

---
_Source: https://npm.io/package/html2jira · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
