Skip to content

Commit

Permalink
add typings
Browse files Browse the repository at this point in the history
  • Loading branch information
ender-null committed May 7, 2024
1 parent cea672c commit d5005a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ export const escapeRegExp = (text: string): string => {
return text;
};

export const htmlToMarkdown = (text) => {
export const htmlToMarkdown = (text: string): string => {
if (text) {
text = text.replace(/<a href="(.*?)">(.*?)<\/a>/gim, '[$2]($1)');
text = text.replace(/<i>(.*?)<\/i>/gim, '_$1_');
Expand Down

0 comments on commit d5005a4

Please sign in to comment.