@notable/html2markdown
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -56,4 +56,4 @@ "use strict"; | ||
return (parentNode.nodeName === 'THEAD' || | ||
((parentNode.nodeName === 'TABLE' || isFirstTbody(parentNode)) && | ||
every.call(tr.childNodes, function (n) { return n.nodeName === 'TH'; }))); | ||
((parentNode.nodeName === 'TABLE' || isFirstTbody(parentNode)) && (tr.previousSibling === null || | ||
every.call(tr.childNodes, function (n) { return n.nodeName === 'TH'; })))); | ||
} | ||
@@ -60,0 +60,0 @@ function isFirstTbody(element) { |
{ | ||
"name": "@notable/html2markdown", | ||
"description": "A small function for converting HTML to Markdown.", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "dist/index.d.ts", |
@@ -68,4 +68,6 @@ | ||
( | ||
(parentNode.nodeName === 'TABLE' || isFirstTbody(parentNode)) && | ||
every.call(tr.childNodes, function (n) { return n.nodeName === 'TH' }) | ||
(parentNode.nodeName === 'TABLE' || isFirstTbody(parentNode)) && ( | ||
tr.previousSibling === null || | ||
every.call(tr.childNodes, function (n) { return n.nodeName === 'TH' }) | ||
) | ||
) | ||
@@ -72,0 +74,0 @@ ) |
@@ -96,3 +96,3 @@ # Title | ||
### **TABLE** | ||
### **TABLES** | ||
@@ -103,1 +103,6 @@ | Foo | Bar | | ||
| Jane | Doe | | ||
| Foo | Bar | | ||
| --- | --- | | ||
| John | Doe | | ||
| Jane | Doe | |
Sorry, the diff of this file is not supported yet
79367
2148