turndown-plugin-gfm

WebJar for turndown-plugin-gfm

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

turndown-plugin-gfm
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

turndown-plugin-gfm
WebJar for turndown-plugin-gfm
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/domchristie/turndown-plugin-gfm

Download turndown-plugin-gfm

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/turndown-plugin-gfm/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>turndown-plugin-gfm</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/turndown-plugin-gfm/
implementation 'org.webjars.npm:turndown-plugin-gfm:1.0.2'
// https://jarcasting.com/artifacts/org.webjars.npm/turndown-plugin-gfm/
implementation ("org.webjars.npm:turndown-plugin-gfm:1.0.2")
'org.webjars.npm:turndown-plugin-gfm:jar:1.0.2'
<dependency org="org.webjars.npm" name="turndown-plugin-gfm" rev="1.0.2">
  <artifact name="turndown-plugin-gfm" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='turndown-plugin-gfm', version='1.0.2')
)
libraryDependencies += "org.webjars.npm" % "turndown-plugin-gfm" % "1.0.2"
[org.webjars.npm/turndown-plugin-gfm "1.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

turndown-plugin-gfm

A Turndown plugin which adds GitHub Flavored Markdown extensions.

Installation

npm:

npm install turndown-plugin-gfm

Browser:

<script src="https://unpkg.com/turndown/dist/turndown.js"></script>
<script src="https://unpkg.com/turndown-plugin-gfm/dist/turndown-plugin-gfm.js"></script>

Usage

// For Node.js
var TurndownService = require('turndown')
var turndownPluginGfm = require('turndown-plugin-gfm')

var gfm = turndownPluginGfm.gfm
var turndownService = new TurndownService()
turndownService.use(gfm)
var markdown = turndownService.turndown('<strike>Hello world!</strike>')

turndown-plugin-gfm is a suite of plugins which can be applied individually. The available plugins are as follows:

  • strikethrough (for converting <strike>, <s>, and <del> elements)
  • tables
  • taskListItems
  • gfm (which applies all of the above)

So for example, if you only wish to convert tables:

var tables = require('turndown-plugin-gfm').tables
var turndownService = new TurndownService()
turndownService.use(tables)

License

turndown-plugin-gfm is copyright © 2017+ Dom Christie and released under the MIT license.

Versions

Version
1.0.2