eleventy-plugin-asciidoc 3.1.2 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eleventy.js +5 -2
- package/README.md +2 -2
- package/package.json +1 -1
package/.eleventy.js
CHANGED
|
@@ -26,7 +26,10 @@ module.exports = {
|
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
eleventyConfig.addTemplateFormats("adoc");
|
|
30
|
-
eleventyConfig.addExtension(
|
|
29
|
+
eleventyConfig.addTemplateFormats(["adoc", "asciidoc", "ad"]);
|
|
30
|
+
eleventyConfig.addExtension(
|
|
31
|
+
["adoc", "asciidoc", "ad"],
|
|
32
|
+
eleventyAsciidoc(converterOptions),
|
|
33
|
+
);
|
|
31
34
|
},
|
|
32
35
|
};
|
package/README.md
CHANGED
|
@@ -6,14 +6,14 @@ You can directly use AsciiDoc files (`.adoc`), just like Markdown (`.md`).
|
|
|
6
6
|
|
|
7
7
|
The plugin uses [Asciidoctor.js](https://docs.asciidoctor.org/asciidoctor.js) under the hood.
|
|
8
8
|
|
|
9
|
-
**Requires Eleventy
|
|
9
|
+
**Requires Eleventy 2.0.0-canary.19 or newer.**
|
|
10
10
|
|
|
11
11
|
## Features
|
|
12
12
|
|
|
13
13
|
- Supports the default [YAML front matter](https://www.11ty.dev/docs/data-frontmatter/).
|
|
14
14
|
- Supports [AsciiDoc document title](https://docs.asciidoctor.org/asciidoc/latest/document/title/#title-syntax)
|
|
15
15
|
- Other attributes in the AsciiDoc files are made available in templates through `asciidocAttributes`.
|
|
16
|
-
- Example `:author: Jane Doe` in the `.adoc` file will be available as `
|
|
16
|
+
- Example `:author: Jane Doe` in the `.adoc` file will be available as `asciidocAttributes.author`
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
19
19
|
|