Socket
Socket
Sign inDemoInstall

brightml

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brightml - npm Package Compare versions

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
};

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc