We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07b77da commit 65cde88Copy full SHA for 65cde88
modules/tool/worker/htmlToMarkdown/utils.ts
@@ -28,7 +28,7 @@ export const html2md = (html: string) => {
28
29
const formatMd = md.replace(
30
/(!\[([^\]]*)\]|\[([^\]]*)\])(\([^)]*\))/g,
31
- (match, prefix, imageAlt, linkAlt, url) => {
+ (match: string, prefix: string, imageAlt: string, linkAlt: string, url: string) => {
32
const altText = imageAlt !== undefined ? imageAlt : linkAlt;
33
const cleanAltText = altText.replace(/\n+/g, ' ').trim();
34
0 commit comments