gitbook-asciidoc
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -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 | ||
}; |
{ | ||
"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
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
10051
19
198
6
+ Addedgitbook-html@1.1.0(transitive)
- Removedgitbook-html@1.0.2(transitive)
Updatedgitbook-html@1.1.0