turndown-plugin-github-code-snippet

1.0.2 • Public • Published

turndown-plugin-github-code-snippet

A Turndown plugin to convert GitHub code snippet in comments back into normal links. Useful for UserScripts.

Installation

In an UserScript:

// @require     https://unpkg.com/turndown/dist/turndown.js
// @require     https://unpkg.com/turndown-plugin-github-code-snippet/turndown-plugin-github-code-snippet.js

Usage

var turndownService = new TurndownService();
turndownService.use(turndownPluginGithubCodeSnippet);
var markdown = turndownService.turndown(document.querySelector('.comment .comment-body'));

License

turndown-plugin-github-code-snippet is copyright © 2019+ Jeroen van Warmerdam and released under the GNU General Public License v3.0 license.

Package Sidebar

Install

npm i turndown-plugin-github-code-snippet

Weekly Downloads

25

Version

1.0.2

License

GPL-3.0-or-later

Unpacked Size

206 kB

Total Files

8

Last publish

Collaborators

  • jerone