Package Exports
- roff
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (roff) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Roff.js
This is a collection of tools for integrating Troff output with JavaScript. It is not a module for parsing Roff source. Don't ever be tempted to write one, either. Stick to a standard Troff implementation like Groff or Heirloom Doctools.
This version is an early pre-release, still in alpha and prone to many changes.
Postprocessors included
canvasUses HTML5 canvas technology to render PDF documents generated by
gropdf(or its equivalent).html-ttyGenerate an HTML-based rendition of monospaced terminal output, replicating the look of a document formatted with
nroff.
Both of these will eventually see use in an (unfinished) extension for the Atom editor.
Postprocessors planned
markdownLossy conversion to CommonMark, with optional GFM-specific features. Includes automated uploading and embedding of embedded SVGs (which requires the
gisttool for uploads).rstLossy conversion to reStructuredText, another lightweight markup language with significantly more features than Markdown.
svgRender a document or Pic drawing as an SVG image
plainhtmlA barest-possible representation of an HTML5 document, composed only of semantic and structured markup. This output is ideal for generating skeleton documents, or for (re-)generating documentation that an existing stylesheet will handle.