Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 5, 2021
1 parent c02f672 commit 4847fc7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import syntax from 'micromark-extension-frontmatter'
import fromMarkdown from 'mdast-util-frontmatter/from-markdown.js'
import toMarkdown from 'mdast-util-frontmatter/to-markdown.js'
import {frontmatter} from 'micromark-extension-frontmatter'
import {
frontmatterFromMarkdown,
frontmatterToMarkdown
} from 'mdast-util-frontmatter'

export default function remarkFrontmatter(options) {
var data = this.data()
add('micromarkExtensions', syntax(options))
add('fromMarkdownExtensions', fromMarkdown(options))
add('toMarkdownExtensions', toMarkdown(options))
add('micromarkExtensions', frontmatter(options))
add('fromMarkdownExtensions', frontmatterFromMarkdown(options))
add('toMarkdownExtensions', frontmatterToMarkdown(options))
function add(field, value) {
/* istanbul ignore if - other extensions. */
if (data[field]) data[field].push(value)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"index.js"
],
"dependencies": {
"mdast-util-frontmatter": "^0.2.0",
"micromark-extension-frontmatter": "^0.2.0"
"mdast-util-frontmatter": "^1.0.0",
"micromark-extension-frontmatter": "^1.0.0"
},
"devDependencies": {
"c8": "^7.0.0",
Expand Down

0 comments on commit 4847fc7

Please sign in to comment.