JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
dev-note.md
index.js
package.json
readme.adoc
test.js

readme.adoc

gulp-asciidoctor

Usage

Simple
gulp.pipe(asciidoctor({
  header_footer: false,
  attributes: ['showtitle']
}));
Other argments
gulp.pipe(asciidoctor({
  header_footer: false,
  safe: 'secure', // unsafe, safe, server or secure
  doctype: 'article', // book, inline
  header_footer: true, // true or false
  attributes: ['showtitle']
}));

install

npm install gulp-asciidoctor --save

Change Log

  • v1.5.5-4: upgrade asciidoctor.js to version 1.5.5-4 and use version consistent with asciidoctor.js.

  • v1.0.8: upgrade asciidoctor.js to version 1.5.5-1 and other deps to latest.

  • v1.0.7: clean dependences(remove gulp and gulp-debug).

  • v1.0.6: bug fixed

  • v1.0.5: fix asciidoctor.js default init bug (Jan/11/2015)

  • v1.0.4: bug fixed (Jan/11/2015)

  • v1.0.3: bug fixed (Jan/8/2015)

    • Initialize asciidoctor.js only once (Thanks Amr Mostafa)

  • v1.0.2: update to asciidoctor 1.5.2

TODO

  • more asciidoctor functions

  • more test case