@elderjs/plugin-markdown
Advanced tools
Comparing version 0.1.22 to 0.1.26
{ | ||
"name": "@elderjs/plugin-markdown", | ||
"version": "0.1.22", | ||
"version": "0.1.26", | ||
"description": "Easily create routes from your markdown files on your Elder.js site using the remark ecosystem.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -41,3 +41,3 @@ # Elder.js Plugin: Markdown | ||
frontmatter, // 'remark-frontmatter' package | ||
[extractFrontmatter, { name: 'frontmatter', yaml: yaml }], // 'remark-extract-frontmatter' and 'yaml' packages. | ||
[extractFrontmatter, { name: 'frontmatter', yaml: yaml.parse }], // 'remark-extract-frontmatter' and 'yaml' packages. | ||
remarkSlug, // 'remark-slug' package | ||
@@ -54,2 +54,3 @@ remarkHtml, // 'remark-html' package | ||
useTableOfContents: false, // adds tocTree to each route's data object. | ||
createRoutes: true, // creates routes in allRequests based on collected md files. | ||
}, | ||
@@ -82,3 +83,3 @@ | ||
1. If you add a single plugin in your `elder.config.js`, you must specify a full `remark` pipeline. | ||
1. If a plugin such as `remark-extract-frontmatter` needs an array of options, you can pass in an array like so: `remarkPlugins: [[extractFrontmatter, { name: 'frontmatter', yaml: yaml }]]` | ||
1. If a plugin such as `remark-extract-frontmatter` needs an array of options, you can pass in an array like so: `remarkPlugins: [[extractFrontmatter, { name: 'frontmatter', yaml: yaml.parse }]]` | ||
@@ -85,0 +86,0 @@ ### Notes: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
124103
87