We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c2e39f commit 3b7af34Copy full SHA for 3b7af34
includes/Actions/Telegram/RecordApiHelper.php
@@ -120,7 +120,7 @@ private static function htmlToMarkdown($html)
120
'/<li>(.*?)<\/li>/s' => "• $1\n", // List item
121
'/<a title="(.*)" href="(.*?)" target="(.*)" rel="(.*)">(.*?)<\/a>/s' => '[$1]($2)', // Links
122
'/<a(.*)href="(.*?)"(.*)>(.*?)<\/a>/s' => '[$1]($2)', // Links
123
- '/<img(.*)src="(.*?)"(.*)alt="(.*?)"(.*)>/s' => '[$1]($2)', // Images
+ '/<img(.*)src="(.*?)"(.*)alt="(.*?)"(.*)>/s' => '$2', // Images
124
'/<code>(.*?)<\/code>/s' => "```\n$1\n```", // Code blocks
125
'/<pre>(.*?)<\/pre>/s' => "```\n$1\n```", // Preformatted text
126
'/<h1>(.*?)<\/h1>/s' => "$1\n", // Heading 1
0 commit comments