| Summary: | Open Link plugin includes trailing '>' from markdown files | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Allen Winter <winter> |
| Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | christoph |
| Priority: | NOR | ||
| Version First Reported In: | Git | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/utilities/kate/-/commit/8c8d12c7da6eac81b2310d37d79f7db15da52f65 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Allen Winter
2025-10-13 18:39:29 UTC
I would propose to post-pass the link not just for the markdown stuff but just
static void adjustLink(QString &link)
{
// fixup links like:
// [ccc](https://cullmann.dev)
// Visit 'https://cullmann.dev'
// Visit "https://cullmann.dev"
// The web site https://cullmann.dev.
// <https://cullmann.dev>
static const QRegularExpression skipSpecial(QStringLiteral("[)'\".>]$"));
link.replace(skipSpecial, QString());
}
to kill any of these closing things at the end.
Will try that. A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1919 Git commit 8c8d12c7da6eac81b2310d37d79f7db15da52f65 by Waqar Ahmed, on behalf of Christoph Cullmann. Committed on 15/10/2025 at 07:01. Pushed by waqar into branch 'master'. better link matching if ending if braces or string/sentences end fixup links like: [ccc](https://cullmann.dev) Visit 'https://cullmann.dev' Visit "https://cullmann.dev" The web site https://cullmann.dev. <https://cullmann.dev> M +15 -14 addons/openlink/matchers.h https://invent.kde.org/utilities/kate/-/commit/8c8d12c7da6eac81b2310d37d79f7db15da52f65 |