Comparing version 3.0.6 to 3.0.7
16
index.js
@@ -187,2 +187,14 @@ var fs = require('fs'); | ||
// Move <img> tags in titles | ||
function cleanImagesInTitles() { | ||
var titles = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']; | ||
titles.forEach(function(title) { | ||
$(title).each(function() { | ||
$img = $(this).children('img'); | ||
$img.insertAfter($(this)); | ||
}); | ||
}); | ||
} | ||
// Normalize an id | ||
@@ -324,2 +336,3 @@ function normalizeId(id) { | ||
cleanElements(); | ||
cleanImagesInTitles(); | ||
normalizeTitlesId(); | ||
@@ -344,3 +357,4 @@ // Cleanup tables | ||
formatTables: formatTables, | ||
cleanTableCells: cleanTableCells | ||
cleanTableCells: cleanTableCells, | ||
cleanImagesInTitles: cleanImagesInTitles | ||
}; |
{ | ||
"name": "brightml", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "Smart utility rendering markdown-ready HTML", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -106,2 +106,6 @@ # Brightml | ||
#### brightml.cleanImagesInTitles() | ||
Move `<img>` tags in titles right after the concerned `<h>` tag. | ||
#### brightml.normalizeTitlesId() | ||
@@ -108,0 +112,0 @@ |
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
33392
819
168