Skip to content

Commit 31cdf9c

Browse files
committed
Refactor prose
1 parent a9adb7b commit 31cdf9c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

readme.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Extension for [`mdast-util-from-markdown`][from-markdown] and/or
1212
[`mdast-util-to-markdown`][to-markdown] to support GitHub flavored markdown
1313
autolink literals in **[mdast][]**.
1414
When parsing (`from-markdown`), must be combined with
15-
[`micromark-extension-gfm-autolink-literal`][syntax].
15+
[`micromark-extension-gfm-autolink-literal`][extension].
1616

1717
You probably shouldn’t use this package directly, but instead use `remark-gfm`
1818
with **[remark][]**.
@@ -32,13 +32,13 @@ Say our script, `example.js`, looks as follows:
3232
```js
3333
var fromMarkdown = require('mdast-util-from-markdown')
3434
var toMarkdown = require('mdast-util-to-markdown')
35-
var autolinkLiteralSyntax = require('micromark-extension-gfm-autolink-literal')
35+
var syntax = require('micromark-extension-gfm-autolink-literal')
3636
var autolinkLiteral = require('mdast-util-gfm-autolink-literal')
3737

3838
var doc = 'www.example.com, https://example.com, and [email protected].'
3939

4040
var tree = fromMarkdown(doc, {
41-
extensions: [autolinkLiteralSyntax],
41+
extensions: [syntax],
4242
mdastExtensions: [autolinkLiteral.fromMarkdown]
4343
})
4444

@@ -112,7 +112,7 @@ for [`mdast-util-from-markdown`][from-markdown] and
112112
— remark plugin to support GFM
113113
* [`micromark/micromark`][micromark]
114114
— the smallest commonmark-compliant markdown parser that exists
115-
* [`micromark/micromark-extension-gfm-autolink-literal`][syntax]
115+
* [`micromark/micromark-extension-gfm-autolink-literal`][extension]
116116
— micromark extension to parse GFM autolink literals
117117
* [`syntax-tree/mdast-util-from-markdown`][from-markdown]
118118
— mdast parser using `micromark` to create mdast from markdown
@@ -183,4 +183,4 @@ abide by its terms.
183183

184184
[micromark]: https://github.com/micromark/micromark
185185

186-
[syntax]: https://github.com/micromark/micromark-extension-gfm-autolink-literal
186+
[extension]: https://github.com/micromark/micromark-extension-gfm-autolink-literal

0 commit comments

Comments
 (0)