@asciidoctor/gulp-asciidoctor
Advanced tools
Comparing version 2.2.3 to 2.2.5
11
index.js
@@ -8,3 +8,6 @@ 'use strict' | ||
var asciidoctor = require('@asciidoctor/core')() | ||
const docbookConverter = require('@asciidoctor/docbook-converter') | ||
docbookConverter.register() | ||
/** | ||
@@ -24,2 +27,5 @@ * Test is the given object is a class | ||
var extension = options.extension || '.html' | ||
if (options.backend === 'docbook5') { | ||
extension = options.extension || '.xml' | ||
} | ||
@@ -30,3 +36,4 @@ // AsciiDoctor options | ||
asciidoctorOptions.attributes = options.attributes || ['showtitle'] | ||
asciidoctorOptions.backend = options.backed || 'html5' // defaults to html5 | ||
// Fixed typo for issue #29 | ||
asciidoctorOptions.backend = options.backend || 'html5' // defaults to html5 | ||
asciidoctorOptions.doctype = options.doctype || 'article' // defaults to article | ||
@@ -42,3 +49,2 @@ | ||
delete asciidoctorOptions.header_footer | ||
// Extension is only used by gulp | ||
@@ -90,3 +96,2 @@ delete asciidoctorOptions.extension | ||
// never forget callback to indicate that the file has been processed. | ||
var data = asciidoctor.convert(file.contents.toString(), | ||
@@ -93,0 +98,0 @@ asciidoctorOptions) |
{ | ||
"name": "@asciidoctor/gulp-asciidoctor", | ||
"version": "2.2.3", | ||
"version": "2.2.5", | ||
"description": "Gulp Asciidoctor plugin", | ||
@@ -40,2 +40,3 @@ "license": "MIT", | ||
"@asciidoctor/core": "^2.2.0", | ||
"@asciidoctor/docbook-converter": "^2.0.0", | ||
"plugin-error": "^1.0.1", | ||
@@ -42,0 +43,0 @@ "replace-ext": "^2.0.0", |
# gulp-asciidoctor | ||
[![Build](https://github.com/asciidoctor/gulp-asciidoctor/workflows/Build/badge.svg)](https://github.com/asciidoctor/gulp-asciidoctor/actions?query=workflow%3ABuild) | ||
[![npm version](https://img.shields.io/npm/v/gulp-asciidoctor.svg)](https://www.npmjs.org/package/@asciidoctor/gulp-asciidoctor) | ||
[![npm version](https://img.shields.io/npm/v/@asciidoctor/gulp-asciidoctor.svg)](https://www.npmjs.org/package/@asciidoctor/gulp-asciidoctor) | ||
@@ -6,0 +6,0 @@ A [gulp](https://gulpjs.com) plugin to support Asciidoctor processing in gulp tasks. |
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
5902
90
5
+ Added@asciidoctor/docbook-converter@2.0.0(transitive)