mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 04:11:26 +08:00
feat: replace require with import 7/n
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import got from '@/utils/got';
|
||||
import { config } from '@/config';
|
||||
const md = require('markdown-it')({
|
||||
import MarkdownIt from 'markdown-it';
|
||||
const md = MarkdownIt({
|
||||
html: true,
|
||||
linkify: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user