Comparing version 3.0.5 to 3.0.6
22
index.js
@@ -33,2 +33,14 @@ var fs = require('fs'); | ||
if (!!$(this).children().length) { | ||
// Move <caption> if any | ||
$caption = $table.find('caption'); | ||
if (!!$caption.length) { | ||
$caption.insertBefore($table); | ||
} | ||
// Remove <colgroup> tags | ||
$colgroup = $table.find('colgroup'); | ||
if (!!$colgroup.length) { | ||
$colgroup.remove(); | ||
} | ||
// Get children | ||
@@ -39,12 +51,2 @@ $children = $table.children(); | ||
// First child might be a <caption> | ||
if (firstChildType === 'caption') { | ||
// Move it before the <table> tag | ||
$caption = $table.find('caption'); | ||
$caption.insertBefore($table); | ||
// Get actual remaining children to process | ||
$children = $table.children(); | ||
firstChildType = getTagName($children); | ||
} | ||
switch (firstChildType) { | ||
@@ -51,0 +53,0 @@ // Case <tr>, move the first in a new <thead> and the others in a new <tbody> |
{ | ||
"name": "brightml", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"description": "Smart utility rendering markdown-ready HTML", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
807
32920