Socket
Socket
Sign inDemoInstall

@tryghost/kg-mobiledoc-html-renderer

Package Overview
Dependencies
Maintainers
17
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tryghost/kg-mobiledoc-html-renderer - npm Package Compare versions

Comparing version 5.2.0 to 5.3.0

15

lib/mobiledoc-html-renderer.js

@@ -101,2 +101,3 @@ const SimpleDom = require('simple-dom');

const ghostVersion = mobiledoc.ghostVersion || '4.0';
const defaultCardOptions = {

@@ -107,3 +108,15 @@ ghostVersion,

const cardOptions = Object.assign({}, defaultCardOptions, _cardOptions);
const rendererOptions = Object.assign({}, this.options, {cardOptions});
const sectionElementRenderer = {
ASIDE: function (tagName, dom) {
// we use ASIDE sections in Koenig as a workaround for applying
// a different blockquote style because mobiledoc doesn't support
// storing arbitrary attributes with sections
const blockquote = dom.createElement('blockquote');
blockquote.setAttribute('class', 'kg-blockquote-alt kg-width-wide');
return blockquote;
}
};
const rendererOptions = Object.assign({}, this.options, {cardOptions, sectionElementRenderer});
const renderer = new Renderer(rendererOptions);

@@ -110,0 +123,0 @@ const rendered = renderer.render(mobiledoc);

4

package.json
{
"name": "@tryghost/kg-mobiledoc-html-renderer",
"version": "5.2.0",
"version": "5.3.0",
"repository": "https://github.com/TryGhost/Koenig/tree/master/packages/kg-mobiledoc-html-renderer",

@@ -32,3 +32,3 @@ "author": "Ghost Foundation",

},
"gitHead": "5fbc876127879babe588a577bc810038c98df5ef"
"gitHead": "050de1323b4051a0424a69b6aba0c790f6e38aeb"
}
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