Skip to content

Commit

Permalink
Remove mdast-util-gfm-tagfilter
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 14, 2024
1 parent 065d983 commit a92ee9a
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 258 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
"packages/heading/",
"packages/image/",
"packages/link/",
"packages/mdast-util-gfm-tagfilter/",
"packages/notranslate/",
"packages/viewscreen-geojson/",
"packages/viewscreen-mermaid/",
Expand Down
9 changes: 1 addition & 8 deletions packages/dir/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import assert from 'node:assert/strict'
import fs from 'node:fs/promises'
import test from 'node:test'
import {createGfmFixtures} from 'create-gfm-fixtures'
import {gfmTagfilterFromMarkdown} from 'mdast-util-gfm-tagfilter'
import rehypeGithubDir from 'rehype-github-dir'
import rehypeRaw from 'rehype-raw'
import rehypeStringify from 'rehype-stringify'
Expand Down Expand Up @@ -40,14 +39,8 @@ test('fixtures', async function (t) {
const processor = unified()
.use(remarkParse)
.use(remarkGfm)
.use(function () {
const data = this.data()
const fromMarkdownExtensions =
data.fromMarkdownExtensions || (data.fromMarkdownExtensions = [])
fromMarkdownExtensions.push(gfmTagfilterFromMarkdown())
})
.use(remarkRehype, {allowDangerousHtml: true})
.use(rehypeRaw)
.use(rehypeRaw, {tagfilter: true})
.use(rehypeGithubDir)
.use(rehypeStringify)

Expand Down
9 changes: 1 addition & 8 deletions packages/emoji/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import assert from 'node:assert/strict'
import fs from 'node:fs/promises'
import test from 'node:test'
import {createGfmFixtures} from 'create-gfm-fixtures'
import {gfmTagfilterFromMarkdown} from 'mdast-util-gfm-tagfilter'
import rehypeGithubEmoji from 'rehype-github-emoji'
import rehypeParse from 'rehype-parse'
import rehypeRaw from 'rehype-raw'
Expand Down Expand Up @@ -133,14 +132,8 @@ test('fixtures', async function (t) {
const processor = unified()
.use(remarkParse)
.use(remarkGfm)
.use(function () {
const data = this.data()
const fromMarkdownExtensions =
data.fromMarkdownExtensions || (data.fromMarkdownExtensions = [])
fromMarkdownExtensions.push(gfmTagfilterFromMarkdown())
})
.use(remarkRehype, {allowDangerousHtml: true})
.use(rehypeRaw)
.use(rehypeRaw, {tagfilter: true})
.use(rehypeGithubEmoji, {})
.use(rehypeStringify)

Expand Down
1 change: 0 additions & 1 deletion packages/mdast-util-gfm-tagfilter/index.js

This file was deleted.

60 changes: 0 additions & 60 deletions packages/mdast-util-gfm-tagfilter/lib/index.js

This file was deleted.

22 changes: 0 additions & 22 deletions packages/mdast-util-gfm-tagfilter/license

This file was deleted.

50 changes: 0 additions & 50 deletions packages/mdast-util-gfm-tagfilter/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/mdast-util-gfm-tagfilter/readme.md

This file was deleted.

80 changes: 0 additions & 80 deletions packages/mdast-util-gfm-tagfilter/test/index.js

This file was deleted.

4 changes: 0 additions & 4 deletions packages/mdast-util-gfm-tagfilter/tsconfig.json

This file was deleted.

9 changes: 1 addition & 8 deletions packages/notranslate/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import assert from 'node:assert/strict'
import fs from 'node:fs/promises'
import test from 'node:test'
import {createGfmFixtures} from 'create-gfm-fixtures'
import {gfmTagfilterFromMarkdown} from 'mdast-util-gfm-tagfilter'
import rehypeGithubNoTranslate from 'rehype-github-notranslate'
import rehypeParse from 'rehype-parse'
import rehypeRaw from 'rehype-raw'
Expand Down Expand Up @@ -68,15 +67,9 @@ test('fixtures', async function (t) {
const processor = unified()
.use(remarkParse)
.use(remarkGfm)
.use(function () {
const data = this.data()
const fromMarkdownExtensions =
data.fromMarkdownExtensions || (data.fromMarkdownExtensions = [])
fromMarkdownExtensions.push(gfmTagfilterFromMarkdown())
})
.use(name.endsWith('.comment') ? [remarkGithubBreak] : [])
.use(remarkRehype, {allowDangerousHtml: true})
.use(rehypeRaw)
.use(rehypeRaw, {tagfilter: true})
.use(name.endsWith('.comment') ? [rehypeGithubNoTranslate] : [])
.use(rehypeStringify)

Expand Down
11 changes: 0 additions & 11 deletions packages/viewscreen-geojson/test/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
import assert from 'node:assert/strict'
import test from 'node:test'

test('viewscreenGeojson', async function (t) {
await t.test('should expose the public api', async function () {
assert.deepEqual(Object.keys(await import('viewscreen-stl')).sort(), [
'viewscreenGeojson'
])
})
})

// Note: we can’t really test much for most viewscreens.
// We can test some more for leaflet with JSDOM.
// But that’s fake, isn’t very extensive, and JSDOM is super heavy.
Expand Down
2 changes: 0 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ You can use these tools when you need to:

Currently, install and use each package manually.

<!-- To do: `mdast-util-gfm-tagfilter` -->

## Packages

* [`remark-github-break`](packages/break/)
Expand Down

0 comments on commit a92ee9a

Please sign in to comment.