Detect markdown line width, resolve relative URLs #332
No reviewers
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#332
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "noerw/tea:markdown-linewrap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
this is semi-blocked by https://github.com/charmbracelet/glamour/pull/96, but behaviour isn't really worse than the previous behaviour (most links work, some are still broken)testcase for link resolver
detect markdown line widthto detect markdown line width, resolve relative URLs@ -22,3 +22,3 @@
"Comments\n%s",
strings.Join(out, "\n"),
))
), comments[0].HTMLURL)
if len comments == 0 ... nil pointer exeption!
sorry got:
while testing
tea issue 332
From discussion at https://github.com/charmbracelet/glamour/pull/96 i understood that we probably should resolve URLs relative to repo.HTMLURL, instead of the issue / comment URL.
This enables cases where a file is linked from the repo file tree etc, and follows what the gitea web UI does.
Will commit a solution later..
some gitea markdown testing (
github
equivalent)detect markdown line width, resolve relative URLsto Detect markdown line width, resolve relative URLs@noerw status?
@6543 didn't find the time yet. i guess we can merge + change behaviour in a followup, if you want to release 0.7.0 now
I was few seconds late ?