Skip to content

Commit 65cde88

Browse files
committed
adapt v1
1 parent 07b77da commit 65cde88

File tree

1 file changed

+1
-1
lines changed
  • modules/tool/worker/htmlToMarkdown

1 file changed

+1
-1
lines changed

modules/tool/worker/htmlToMarkdown/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const html2md = (html: string) => {
2828

2929
const formatMd = md.replace(
3030
/(!\[([^\]]*)\]|\[([^\]]*)\])(\([^)]*\))/g,
31-
(match, prefix, imageAlt, linkAlt, url) => {
31+
(match: string, prefix: string, imageAlt: string, linkAlt: string, url: string) => {
3232
const altText = imageAlt !== undefined ? imageAlt : linkAlt;
3333
const cleanAltText = altText.replace(/\n+/g, ' ').trim();
3434

0 commit comments

Comments
 (0)