Skip to content

Commit

Permalink
Update @types/mdast, utilities, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 22, 2023
1 parent c241170 commit e7c1249
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,21 @@
"index.js"
],
"dependencies": {
"@types/mdast": "^3.0.0",
"@types/mdast": "^4.0.0",
"js-yaml": "^4.0.0",
"mdast-util-to-markdown": "^1.0.0",
"unified": "^10.0.0"
"mdast-util-to-markdown": "^2.0.0",
"unified": "^11.0.0"
},
"devDependencies": {
"@types/node": "^20.0.0",
"c8": "^8.0.0",
"prettier": "^3.0.0",
"remark": "^14.0.0",
"rehype-stringify": "^10.0.0",
"remark": "^15.0.0",
"remark-cli": "^11.0.0",
"remark-frontmatter": "^4.0.0",
"remark-html": "^15.0.0",
"remark-frontmatter": "^5.0.0",
"remark-preset-wooorm": "^9.0.0",
"remark-rehype": "^11.0.0",
"type-coverage": "^2.0.0",
"typescript": "^5.0.0",
"xo": "^0.56.0"
Expand Down
8 changes: 5 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import test from 'node:test'
import {unified} from 'unified'
import {remark} from 'remark'
import remarkFrontmatter from 'remark-frontmatter'
import remarkHtml from 'remark-html'
import remarkRehype from 'remark-rehype'
import remarkStringify from 'remark-stringify'
import remarkYamlConfig from './index.js'

test('remark-yaml-config', async function (t) {
Expand Down Expand Up @@ -39,7 +40,7 @@ test('remark-yaml-config', async function (t) {
.use(remarkYamlConfig)
.process('---\nremark:\n bullet: "*"\n---\n- Foo')
),
'---\nremark:\n bullet: "*"\n---\n\n* Foo\n'
'---\nremark:\n bullet: "*"\n---\n\n* Foo\n'
)
})

Expand Down Expand Up @@ -70,7 +71,8 @@ test('remark-yaml-config', async function (t) {
await remark()
.use(remarkFrontmatter)
.use(remarkYamlConfig)
.use(remarkHtml)
.use(remarkRehype)
.use(remarkStringify)
.process(
[
'---',
Expand Down

0 comments on commit e7c1249

Please sign in to comment.