Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gitbook-asciidoc

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-asciidoc - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

test/inline.js

15

lib/tohtml.js

@@ -5,3 +5,3 @@ var asciidoctor = require('asciidoctor.js')();

// Render Asciidoc to HTML (block)
function asciidocToHTML(content) {

@@ -14,2 +14,13 @@ var options = opal.hash2(['attributes'], {'attributes': 'showtitle'});

module.exports = asciidocToHTML;
// Render Asciidoc to HTML (inline)
function asciidocToHTMLInline(content) {
var options = Opal.hash({doctype: 'inline', attributes: ['showtitle']});
var html = processor.$convert(content, options);
return html;
};
module.exports = {
block: asciidocToHTML,
inline: asciidocToHTMLInline
};

4

package.json
{
"name": "gitbook-asciidoc",
"version": "1.0.2",
"version": "1.1.0",
"homepage": "https://www.gitbook.com",

@@ -10,3 +10,3 @@ "description": "Parse AsciiDoc content for gitbook",

"asciidoctor.js": "1.5.5-1",
"gitbook-html": "1.0.2"
"gitbook-html": "1.1.0"
},

@@ -13,0 +13,0 @@ "devDependencies": {

@@ -16,3 +16,3 @@ var fs = require('fs');

it('should only get heading + paragraph pairs', function() {
assert.equal(LEXED.length, 5);
assert.equal(LEXED.length, 4);
});

@@ -19,0 +19,0 @@

Sorry, the diff of this file is not supported yet

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