Skip to content

Commit

Permalink
fix(bi-link): CI Lint Error2
Browse files Browse the repository at this point in the history
  • Loading branch information
LincZero authored Nov 11, 2024
1 parent d494ff8 commit 4e41635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/markdown-it-bi-directional-links/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ describe('markdown-it-bi-directional-links', () => {
const rendered = new MarkdownIt({ html: true })
.use(BiDirectionalLinks({ dir: testdataDir }))
.render(`[[#bar]]`)

expect(rendered).toBe(`<p><a href="#bar">bar</a></p>\n`)
})

it('should render when without "foo" 2', () => {
const rendered = new MarkdownIt({ html: true })
.use(BiDirectionalLinks({ dir: testdataDir }))
.render(`[[^bar]]`)

expect(rendered).toBe(`<p><a href="#^bar">bar</a></p>\n`)
})

Expand Down

0 comments on commit 4e41635

Please sign in to comment.