mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-17 15:42:34 +08:00
Merge branch 'master' of github.com:laurent22/joplin-turndown-plugin-gfm
This commit is contained in:
commit
0f64fe53cb
16
README.md
16
README.md
@ -2,19 +2,17 @@
|
|||||||
|
|
||||||
A [Turndown](https://github.com/domchristie/turndown) plugin which adds GitHub Flavored Markdown extensions.
|
A [Turndown](https://github.com/domchristie/turndown) plugin which adds GitHub Flavored Markdown extensions.
|
||||||
|
|
||||||
|
This is a fork of the original [turndown-plugin-gfm](https://github.com/domchristie/turndown-plugin-gfm) for use with [Joplin](https://github.com/laurent22/joplin). The changes are:
|
||||||
|
|
||||||
|
- Always render tables even they don't have a header.
|
||||||
|
- Don't render the border of tables that contain other tables (frequent for websites that do the layout using tables). Only render the inner tables, if any, and if they also don't contain other tables.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
npm:
|
npm:
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install turndown-plugin-gfm
|
npm install joplin-turndown-plugin-gfm
|
||||||
```
|
|
||||||
|
|
||||||
Browser:
|
|
||||||
|
|
||||||
```html
|
|
||||||
<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
|
## Usage
|
||||||
@ -22,7 +20,7 @@ Browser:
|
|||||||
```js
|
```js
|
||||||
// For Node.js
|
// For Node.js
|
||||||
var TurndownService = require('turndown')
|
var TurndownService = require('turndown')
|
||||||
var turndownPluginGfm = require('turndown-plugin-gfm')
|
var turndownPluginGfm = require('joplin-turndown-plugin-gfm')
|
||||||
|
|
||||||
var gfm = turndownPluginGfm.gfm
|
var gfm = turndownPluginGfm.gfm
|
||||||
var turndownService = new TurndownService()
|
var turndownService = new TurndownService()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user