asciidoctor-external-callout
Version:
Asciidoctor extension that adds support for callouts added outside the listing block.
13 lines (11 loc) • 487 B
JavaScript
const asciidoctor = require('@asciidoctor/core')()
const registry = asciidoctor.Extensions.create()
require('./asciidoctor-external-callout.js')(registry)
asciidoctor.convertFile('./sample.adoc', {safe: 'safe',
attributes: {'stylesheet': './callout.css'},
standalone: true,
extension_registry: registry})
asciidoctor.convertFile('./nested-sample.adoc', {safe: 'safe',
attributes: {'stylesheet': './callout.css'},
standalone: true,
extension_registry: registry})