Skip to content

Commit 3b7af34

Browse files
committed
fix: telegram img html converter issue
1 parent 0c2e39f commit 3b7af34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/Actions/Telegram/RecordApiHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private static function htmlToMarkdown($html)
120120
'/<li>(.*?)<\/li>/s' => "• $1\n", // List item
121121
'/<a title="(.*)" href="(.*?)" target="(.*)" rel="(.*)">(.*?)<\/a>/s' => '[$1]($2)', // Links
122122
'/<a(.*)href="(.*?)"(.*)>(.*?)<\/a>/s' => '[$1]($2)', // Links
123-
'/<img(.*)src="(.*?)"(.*)alt="(.*?)"(.*)>/s' => '[$1]($2)', // Images
123+
'/<img(.*)src="(.*?)"(.*)alt="(.*?)"(.*)>/s' => '$2', // Images
124124
'/<code>(.*?)<\/code>/s' => "```\n$1\n```", // Code blocks
125125
'/<pre>(.*?)<\/pre>/s' => "```\n$1\n```", // Preformatted text
126126
'/<h1>(.*?)<\/h1>/s' => "$1\n", // Heading 1

0 commit comments

Comments
 (0)