@joplin/turndown-plugin-gfm
Advanced tools
Comparing version 1.0.56 to 1.0.57
@@ -221,3 +221,3 @@ 'use strict'; | ||
const child = node.childNodes[i]; | ||
if (types === 'code' && isCodeBlock_(child)) return true; | ||
if (types === 'code' && isCodeBlock_ && isCodeBlock_(child)) return true; | ||
if (types.includes(child.nodeName)) return true; | ||
@@ -224,0 +224,0 @@ if (nodeContains(child, types)) return true; |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "1.0.56", | ||
"version": "1.0.57", | ||
"author": "Dom Christie", | ||
@@ -15,3 +15,3 @@ "main": "lib/turndown-plugin-gfm.cjs.js", | ||
"standard": "17.1.0", | ||
"turndown": "7.1.3", | ||
"turndown": "7.2.0", | ||
"turndown-attendant": "0.0.3" | ||
@@ -46,3 +46,3 @@ }, | ||
}, | ||
"gitHead": "a48c4ba93fb438c0dc190a61762f4bed44b946fe" | ||
"gitHead": "189ba7795a8af01a6ffd3607c92a271d69b68783" | ||
} |
@@ -51,4 +51,15 @@ # turndown-plugin-gfm | ||
### Typescript | ||
To use this in a typescript project, add this to a `declarations.d.ts` file, as described in https://www.npmjs.com/package/@joplin/turndown, and then add: | ||
```ts | ||
declare module "@joplin/turndown-plugin-gfm" { | ||
export const gfm: any; | ||
// Add other named exports if necessary | ||
} | ||
``` | ||
## License | ||
turndown-plugin-gfm is copyright © 2017+ Dom Christie and released under the MIT license. |
14331
65