Skip to content

Commit 3c50dda

Browse files
committed
Refactor prose
1 parent 94f4945 commit 3c50dda

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Extension for [`mdast-util-from-markdown`][from-markdown] and/or
1212
[`mdast-util-to-markdown`][to-markdown] to support frontmatter in **[mdast][]**.
1313
When parsing (`from-markdown`), must be combined with
14-
[`micromark-extension-frontmatter`][extension-frontmatter].
14+
[`micromark-extension-frontmatter`][extension].
1515

1616
You probably shouldn’t use this package directly, but instead use
1717
[`remark-frontmatter`][remark-frontmatter] with **[remark][]**.
@@ -42,13 +42,13 @@ And our script, `example.js`, looks as follows:
4242
var fs = require('fs')
4343
var fromMarkdown = require('mdast-util-from-markdown')
4444
var toMarkdown = require('mdast-util-to-markdown')
45-
var frontmatterSyntax = require('micromark-extension-frontmatter')
45+
var syntax = require('micromark-extension-frontmatter')
4646
var frontmatter = require('mdast-util-frontmatter')
4747

4848
var doc = fs.readFileSync('example.md')
4949

5050
var tree = fromMarkdown(doc, {
51-
extensions: [frontmatterSyntax(['yaml', 'toml'])],
51+
extensions: [syntax(['yaml', 'toml'])],
5252
mdastExtensions: [frontmatter.fromMarkdown(['yaml', 'toml'])]
5353
})
5454

@@ -108,7 +108,7 @@ Options are the same as [`micromark-extension-frontmatter`][options].
108108
— remark plugin to support frontmatter
109109
* [`micromark/micromark`][micromark]
110110
— the smallest commonmark-compliant markdown parser that exists
111-
* [`micromark/micromark-extension-frontmatter`][extension-frontmatter]
111+
* [`micromark/micromark-extension-frontmatter`][extension]
112112
— micromark extension to parse frontmatter
113113
* [`syntax-tree/mdast-util-from-markdown`][from-markdown]
114114
— mdast parser using `micromark` to create mdast from markdown
@@ -181,6 +181,6 @@ abide by its terms.
181181

182182
[micromark]: https://github.com/micromark/micromark
183183

184-
[extension-frontmatter]: https://github.com/micromark/micromark-extension-frontmatter
184+
[extension]: https://github.com/micromark/micromark-extension-frontmatter
185185

186186
[options]: https://github.com/micromark/micromark-extension-frontmatter#options

0 commit comments

Comments
 (0)