Socket
Socket
Sign inDemoInstall

@37bytes/js-jiramark

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@37bytes/js-jiramark

Parser for the JIRA markup language


Version published
Weekly downloads
34
increased by100%
Maintainers
4
Weekly downloads
 
Created
Source

node-jiramark fork

May work in browser.

jiramark is a library for parsing the JIRA markup language. This library may fail to parse some markup since it doesn't fall back as gracefully with weird input in the same way that JIRA does. If you have any examples of sane markup that you think this library could handle, please open an issue.

Installation

Install node.js, then:

npm install 37bytes/js-jiramark

API

markupToHTML(input)

This will return a string representing an approximation of the JIRA markup in HTML. If the input cannot be parsed, then an explanatory Error will be thrown.

You'll also want to insert CSS into the page to help format things the way you want. Here's an example to start with:

div.panel {
  border: 2px solid black;
  margin-left: 1em;
  margin-right: 1em;
}
div.code, div.preformatted {
  font-family: Monospace;
}
div.panel, pre {
  background-color: #eeeeee;
}
div.panel div {
  padding: 9px 12px;
}
div.panel div.panelHeader {
  border-bottom: 2px solid black;
}
th, tr {
  border: 1px solid black;
  padding: 3px 4px;
}
th {
  background-color: #eeeeee;
  text-align: center;
}

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. For the full license text see LICENSE, or http://mozilla.org/MPL/2.0/.

Copyright (c) 2019, Joyent, Inc.

Bugs

See https://github.com/37bytes/js-jiramark/issues + https://github.com/joyent/node-jiramark/issues.

Keywords

FAQs

Package last updated on 10 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc