8000 GitHub - jerone/turndown-plugin-github-code-snippet: A Turndown plugin to convert GitHub code snippet in comments back into normal links.
[go: up one dir, main page]

Skip to content

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

License

Notifications You must be signed in to change notification settings

jerone/turndown-plugin-github-code-snippet

Repository files navigation

Quality Gate Status

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

Requirements

Installation

As a NPM package:

npm install turndown-plugin-github-code-snippet

In an UserScript:

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

Usage

var turndownService = new TurndownService();
turndownService.use(turndownPluginGitHubCodeSnippet);
var markdown = turndownService.turndown(document.querySelector(".comment"));
console.log(markdown);

License

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



Stand With Ukraine

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
0