1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-29 12:04:17 +00:00
forgejo/modules/markup
j. mccann 55cd4a6248 Don't manually replace whitespace during render
For historical reasons Gitea manually alters the urlPrefix and replaces
a whitespace with a +. This Works for URLs, but we're also passing
urlPrefix to git calls and adding the + is breaking the tree path.

Goldmark will automatically convert a white space to the proper %20, so
we should leave the string as is which lets us pass it to git unmodified
and then let Goldmark fix it.

Also fixed separate bug in URLJoin I noticed while testing where it will
silently discard sections of a path that have # in them (possibly
others). We should just escape it first.

Fixes 10156
2020-02-16 01:02:56 -05:00
..
common Change markdown rendering from blackfriday to goldmark () 2019-12-31 03:53:28 +02:00
csv Detect delimiter in CSV rendering () 2019-08-16 01:09:50 +03:00
external Better logging () () 2019-04-02 08:48:31 +01:00
markdown Don't manually replace whitespace during render 2020-02-16 01:02:56 -05:00
mdstripper Change markdown rendering from blackfriday to goldmark () 2019-12-31 03:53:28 +02:00
orgmode Update go-org to optimize code () 2019-11-05 16:39:03 +08:00
html.go Issue/PR Context Popups () 2020-01-19 23:39:21 -05:00
html_internal_test.go Issue/PR Context Popups () 2020-01-19 23:39:21 -05:00
html_test.go Issue/PR Context Popups () 2020-01-19 23:39:21 -05:00
markup.go Don't manually replace whitespace during render 2020-02-16 01:02:56 -05:00
markup_test.go Prioritize "readme.md" () 2019-01-14 14:15:06 -05:00
sanitizer.go Issue/PR Context Popups () 2020-01-19 23:39:21 -05:00
sanitizer_test.go Allow kbd tags () 2019-12-03 14:02:41 -05:00