aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/composer
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-09-30 13:31:42 +0200
committerHarald Eilertsen <haraldei@anduin.net>2024-09-30 13:54:50 +0200
commit803cd74b4881a617a56be4fb5780d6d25fd5433f (patch)
tree40ddb87607cb2ae631f11cd0edc5a43dfa7ac78d /vendor/composer
parent2c0563877614fe0a92e670ec045d748c795934cd (diff)
downloadvolse-hubzilla-803cd74b4881a617a56be4fb5780d6d25fd5433f.tar.gz
volse-hubzilla-803cd74b4881a617a56be4fb5780d6d25fd5433f.tar.bz2
volse-hubzilla-803cd74b4881a617a56be4fb5780d6d25fd5433f.zip
markdown: Don't link URLs in code blocks.
When passing a content throught the `markdown_to_bb` function to convert any markdown in the content, any recognized URLs in the content would be converted to BBCode links as a post processing step after the main conversion. After commit a1ccacb825edac6ae36e5db4f62ebfe7aeaebe9f this did no longer consider content within code blocks, and would thus convert them as to BBCode links. Example: The following content [code] example url: https://example.com [/code] Would be converted to [code] example url: [url=https://example.com]https://example.com[/url] [/code] Prior to commit a1ccacb825edac6ae36e5db4f62ebfe7aeaebe9f, code blocks would be protected, so this would not happen. This patch removes the post processing step for converting plain URLs to links completely from this routine. This functionality is in any case covered in the actual BBCode parser where it belongs. This will have some other side effects as well, such as images and links created using Markdown, will not be converted to [zmg] or [zrl] tags where that would be done automatically before. If you intend to use a [zrl] or [zmg] tag, you now need to do so explicitly.
Diffstat (limited to 'vendor/composer')
0 files changed, 0 insertions, 0 deletions