Socket
Book a DemoInstallSign in
Socket

@six7/gatsby-transformer-asciidoctor

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@six7/gatsby-transformer-asciidoctor

Asciidoctor transformer plugin for gatsby with converterFactory

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

= gatsby-transformer-asciidoctor Julien Tanguy v0.1.0, 2019-01-07: Initial version

Parses asciidoc files using link:https://github.com/asciidoctor/asciidoctor.js[asciidoctor.js]

== Install

npm install --save @jtanguy/gatsby-transformer-asciidoctor

== How to use

[source,javascript]

// In your gatsby-config.js plugins: [ { resolve: @jtanguy/gatsby-transformer-asciidoctor, }, ],

== Parsing algorithm

It recognizes only files with the adoc extensions as asciidoc.

Each asciidoc file is parsed into a node of type Asciidoctor.

The following standard attributes are stored in the document's frontmatter:

  • title
  • date
  • version
  • remark
  • author
  • authors: a list of authors, with the following fields: ** name ** firstname ** lastname ** email ** initials

The following non-standard attributes are stored in the document's frontmatter

description:: The description attribute tags:: The tags attribute. The value is split into a list using ; as a delimiter

FAQs

Package last updated on 12 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts