Add regex for title text version of links

* Add regex for title text version of links

Original parser matched:
  [name](http:://link)

Add match for:
  [name](http:://link "title text")

* Add tests and improve regex's
* Several new tests in test_maddy_linkparser.cpp  (Some with paths for future improvement, and one to ensure an overzealous future update doesn't disallow actually-used special characters like o-umlaut).
* URLs now ignore leading/trailing spaces.
* URLs now don't match on internal spaces or quotes.
* Small grammar fix in CONTRIBUTING.md
* Updated changelog.
This commit is contained in:
Lucian Smith
2025-04-20 09:45:27 -07:00
committed by GitHub
parent af59cd13d4
commit 2a00c9fb0b
6 changed files with 166 additions and 6 deletions

View File

@@ -16,4 +16,4 @@ improve the code? Then [create a GitHub issue](https://github.com/progsource/mad
* Explain for what your PR is for - like providing a use-case or something similar.
* Update documentation of the Markdown syntax if anything changed there. (`docs/definitions.md`)
* Add a changelog entry at "Upcoming" inside of `CHANGELOG.md`
* Make sure, that the tests are successful and if you wrote a bugfix, to have a test, that highlights the issue.
* Make sure that the tests are successful and if you wrote a bugfix, to have a test that highlights the issue.