import MarkdownIt from 'markdown-it'
import { describe, expect, it } from 'vitest'
import { linksPlugin } from '../src/node/enhance/links.js'
describe('linksPlugin', () => {
const md = new MarkdownIt({
html: true,
}).use(linksPlugin)
it('should work with external link', () => {
expect(md.render('[link](https://github.com)')).toContain(' {
expect(md.render('[link](#anchor)')).toContain(' {
expect(md.render('[link](/path)')).toContain('')
})
})