Skip to content

Commit

Permalink
fix: Allow include in asciidoc (#21674)
Browse files Browse the repository at this point in the history
  • Loading branch information
manusa committed Feb 23, 2020
1 parent 80acb8d commit f4295df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/gatsby-transformer-asciidoc/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ async function onCreateNode(
// Load Asciidoc file for extracting
// https://asciidoctor-docs.netlify.com/asciidoctor.js/processor/extract-api/
// We use a `let` here as a warning: some operations, like .convert() mutate the document
let doc = await asciidoc.load(content, asciidocOptions)
let doc = await asciidoc.load(content, {
base_dir: node.dir,
...asciidocOptions,
})

try {
const html = doc.convert()
Expand Down

0 comments on commit f4295df

Please sign in to comment.