@notable/html2markdown
Advanced tools
Comparing version
@@ -51,3 +51,3 @@ "use strict"; | ||
service.addRule('alignment', { | ||
filter: node => node.nodeName !== 'TABLE' && (node.getAttribute('style') || '').includes('text-align:'), | ||
filter: node => node.nodeName !== 'TABLE' && node.nodeName !== 'TR' && node.nodeName !== 'TD' && node.nodeName !== 'TH' && (node.getAttribute('style') || '').includes('text-align:'), | ||
replacement: (str, ele) => { | ||
@@ -54,0 +54,0 @@ str = str.trim(); |
{ | ||
"name": "@notable/html2markdown", | ||
"description": "A small function for converting HTML to Markdown.", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "dist/index.d.ts", |
@@ -61,3 +61,3 @@ | ||
service.addRule ( 'alignment', { | ||
filter: node => node.nodeName !== 'TABLE' && ( node.getAttribute ( 'style' ) || '' ).includes ( 'text-align:' ), | ||
filter: node => node.nodeName !== 'TABLE' && node.nodeName !== 'TR' && node.nodeName !== 'TD' && node.nodeName !== 'TH' && ( node.getAttribute ( 'style' ) || '' ).includes ( 'text-align:' ), | ||
replacement: ( str, ele: HTMLElement ) => { | ||
@@ -64,0 +64,0 @@ str = str.trim (); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
79000
0.2%0
-100%