asciidoctor-tei
v1.0.0-alpha.1
Published
> Convert [AsciiDoc documents][asciidoc] into XML/TEI files, > at least a subset used by [OpenEdition publishing][openedition], > as documented by the [XML/TEI OpenEdition Schema][schema-repo].
Downloads
2
Readme
asciidoctor-tei
Convert AsciiDoc documents into XML/TEI files, at least a subset used by OpenEdition publishing, as documented by the XML/TEI OpenEdition Schema.
asciidoctor-tei
is a companion module for asciidoctor.js
in order to be used with Node.js or within a Web browser.
Note: the module is in active development, things might look incomplete or broken.
Usage
Command line
$ asciidoctor --require asciidoctor-tei -b tei ./docs/sample.adoc
JavaScript API
const asciidoctor = require('@asciidoctor/core')()
const teiConverter = require('asciidoctor-tei')
teiConverter(asciidoctor)
const xmlString = asciidoctor.convert(
`= My Academic Paper: From text to text
John Doe <[email protected]>
[preamble]
...
= Chapter 1
...`)
Install
$ npm install asciidoctor asciidoctor-tei