Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | markdown: Don't link URLs in code blocks. | Mario | 2024-10-02 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. (cherry picked from commit 803cd74b4881a617a56be4fb5780d6d25fd5433f) Co-authored-by: Harald Eilertsen <haraldei@anduin.net> | ||||
* | Upgrade test framework to PHPUnit 10.5 | Harald Eilertsen | 2024-05-27 | 1 | -2/+2 |
| | |||||
* | Support code blocks with language in markdown and html. | Harald Eilertsen | 2024-02-08 | 1 | -0/+4 |
| | |||||
* | Fix: Preserve hard linebreaks from markdown and html | Harald Eilertsen | 2024-02-07 | 1 | -0/+8 |
| | |||||
* | Fix: Keep indentation in html and md code blocks. | Harald Eilertsen | 2024-02-07 | 1 | -0/+4 |
| | | | | | | | Moves the logic for unwrapping broken lines in html (and Markdown) to the node processing, instead of doing it over the full html content. This allows us to skip if for code blocks (aka `<code>` elements within `<pre>` elements). | ||||
* | Fix convert code blocs from markdown/html to bbcode | Harald Eilertsen | 2024-02-06 | 1 | -0/+8 |
| | |||||
* | Fix image with alt text for html/md to bbcode | Harald Eilertsen | 2024-02-06 | 1 | -0/+4 |
| | |||||
* | Add some tests for markdown to bbcode conversion. | Harald Eilertsen | 2024-02-06 | 1 | -0/+37 |
| | |||||
* | Clean up markdowntest and fix bb to markdown test. | Harald Eilertsen | 2024-02-06 | 1 | -41/+25 |
| | |||||
* | Unit tests: Update Markdown tests to reflect that it works. | Harald Eilertsen | 2023-06-14 | 1 | -2/+2 |
| | |||||
* | a possible fix for the nested list test | Mario | 2021-09-29 | 1 | -2/+2 |
| | |||||
* | fix markdown test | Mario | 2020-01-09 | 1 | -2/+2 |
| | |||||
* | fix another markdown test | Mario Vavti | 2018-10-30 | 1 | -1/+1 |
| | |||||
* | fix markdown tests | Mario Vavti | 2018-10-30 | 1 | -12/+6 |
| | |||||
* | fix html2markdown() and re-enable previously failing tests | Mario Vavti | 2018-10-30 | 1 | -4/+4 |
| | |||||
* | fix phpunit error with html2markdown test and temporary disable failing ↵ | git-marijus | 2018-10-13 | 1 | -4/+8 |
| | | | | markdown test in connection with **bold** and _italic_ (it is not clear why they fail and the code appears to work as expected) | ||||
* | :hammer::white_check_mark: Add html2markdown unit tests. | Klaus Weidenbach | 2017-05-27 | 1 | -0/+149 |
A tiny refactoring to make HTML 2 markdown conversion testable. Add some unit tests to check the behavior of the now used HTML2Markdown library. There are some differences compared to the old pixel418/markdownify library. |