Gusted 
								
							 
						 
						
							
							
								
							
							
	2457f5ff22  
						 
						
							
							
								
								
								chore: branding import path ( #7337 )  
							
							... 
							
							
							
							
							- Massive replacement of changing `code.gitea.io/gitea` to `forgejo.org`.
- Resolves  forgejo/discussions#258 
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7337 
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-by: Beowulf <beowulf@beocode.eu>
Reviewed-by: Panagiotis "Ivory" Vasilopoulos <git@n0toose.net>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz> 
							
						 
						
							2025-03-27 19:40:14 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Renovate Bot 
								
							 
						 
						
							
							
								
							
							
	4b0d11976f  
						 
						
							
							
								
								
								Update module github.com/alecthomas/chroma/v2 to v2.15.0 (forgejo) ( #6477 )  
							
							... 
							
							
							
							
							This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma ) | require | minor | `v2.14.0` -> `v2.15.0` |
---
### Release Notes
<details>
<summary>alecthomas/chroma (github.com/alecthomas/chroma/v2)</summary>
### [`v2.15.0`](https://github.com/alecthomas/chroma/releases/tag/v2.15.0 )
[Compare Source](https://github.com/alecthomas/chroma/compare/v2.14.0...v2.15.0 )
#### What's Changed
-   AQL: Add builtin functions introduced in v3.12 by [@​Simran-B](https://github.com/Simran-B ) in https://github.com/alecthomas/chroma/pull/968 
-   chore(styles): add evergarden inspired style by [@​comfysage](https://github.com/comfysage ) in https://github.com/alecthomas/chroma/pull/970 
-   chore(deps): update dependency svu to v2 by [@​renovate](https://github.com/renovate ) in https://github.com/alecthomas/chroma/pull/971 
-   chore(deps): update dependency watchexec to v2 by [@​renovate](https://github.com/renovate ) in https://github.com/alecthomas/chroma/pull/962 
-   chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate ) in https://github.com/alecthomas/chroma/pull/955 
-   styles: Fix Gleam alias by [@​jmooring](https://github.com/jmooring ) in https://github.com/alecthomas/chroma/pull/973 
-   chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate ) in https://github.com/alecthomas/chroma/pull/974 
-   chore(deps): update dependency python3 to v3.12.3 by [@​renovate](https://github.com/renovate ) in https://github.com/alecthomas/chroma/pull/976 
-   added the nordic theme via chroma/styles/nordic.xml by [@​avih7531](https://github.com/avih7531 ) in https://github.com/alecthomas/chroma/pull/977 
-   Update the Materialize lexer by [@​arusahni](https://github.com/arusahni ) in https://github.com/alecthomas/chroma/pull/978 
-   feat(lexers/hare): add done keyword by [@​wackbyte](https://github.com/wackbyte ) in https://github.com/alecthomas/chroma/pull/979 
-   pygments2chroma: escape regex.words by [@​oliverpool](https://github.com/oliverpool ) in https://github.com/alecthomas/chroma/pull/982 
-   chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate ) in https://github.com/alecthomas/chroma/pull/981 
-   Add JSONata Lexer by [@​DevDimov](https://github.com/DevDimov ) in https://github.com/alecthomas/chroma/pull/983 
-   Go lexer: single line comment without consuming endline, disable EnsureNL by [@​msorc](https://github.com/msorc ) in https://github.com/alecthomas/chroma/pull/984 
-   Update the Materialize lexer by [@​arusahni](https://github.com/arusahni ) in https://github.com/alecthomas/chroma/pull/987 
-   chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate ) in https://github.com/alecthomas/chroma/pull/985 
-   Add Gleam to README by [@​Nicd](https://github.com/Nicd ) in https://github.com/alecthomas/chroma/pull/990 
-   Port Minecraft lexers from Pygments by [@​kofuk](https://github.com/kofuk ) in https://github.com/alecthomas/chroma/pull/992 
-   Don't output extra whitespace in YAML multiline by [@​Gusted](https://github.com/Gusted ) in https://github.com/alecthomas/chroma/pull/993 
-   chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate ) in https://github.com/alecthomas/chroma/pull/991 
-   add beef syntax and tests by [@​Booklordofthedings](https://github.com/Booklordofthedings ) in https://github.com/alecthomas/chroma/pull/995 
-   Update GitHub light color palette by [@​konradreiche](https://github.com/konradreiche ) in https://github.com/alecthomas/chroma/pull/998 
-   chore(deps): update module github.com/alecthomas/kong to v1 by [@​renovate](https://github.com/renovate ) in https://github.com/alecthomas/chroma/pull/999 
-   Update the Materialize lexer by [@​arusahni](https://github.com/arusahni ) in https://github.com/alecthomas/chroma/pull/1001 
-   Update TypeScript lexer to allow nested generics by [@​fredrare](https://github.com/fredrare ) in https://github.com/alecthomas/chroma/pull/1002 
-   Pager friendly terminal formatting by [@​walles](https://github.com/walles ) in https://github.com/alecthomas/chroma/pull/1006 
-   chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate ) in https://github.com/alecthomas/chroma/pull/997 
-   Add Typst Lexer by [@​oliverpool](https://github.com/oliverpool ) in https://github.com/alecthomas/chroma/pull/1007 
-   Add Jsonnet Lexer by [@​jolheiser](https://github.com/jolheiser ) in https://github.com/alecthomas/chroma/pull/1011 
-   fix: add underscore parsing in numbers for haskell by [@​Gusted](https://github.com/Gusted ) in https://github.com/alecthomas/chroma/pull/1020 
-   Add CSV lexer by [@​walles](https://github.com/walles ) in https://github.com/alecthomas/chroma/pull/1005 
-   fix(typescript): highlight string literal type parameters by [@​SKalt](https://github.com/SKalt ) in https://github.com/alecthomas/chroma/pull/1010 
-   add any as a builtin type for go by [@​quartercastle](https://github.com/quartercastle ) in https://github.com/alecthomas/chroma/pull/1021 
-   chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate ) in https://github.com/alecthomas/chroma/pull/1013 
-   Remove whitespace tokenizing rule in markdown lexer by [@​cloudchamb3r](https://github.com/cloudchamb3r ) in https://github.com/alecthomas/chroma/pull/1008 
-   feat(JSON): support `.jsonc` extension by [@​CarterLi](https://github.com/CarterLi ) in https://github.com/alecthomas/chroma/pull/1022 
-   Add Eclipse ATL language (https://eclipse.dev/atl/ ) by [@​dwagelaar](https://github.com/dwagelaar ) in https://github.com/alecthomas/chroma/pull/1024 
-   Import NSIS Lexer from Pygments by [@​JakobDev](https://github.com/JakobDev ) in https://github.com/alecthomas/chroma/pull/1026 
-   chore(deps): update module github.com/alecthomas/kong to v1.5.1 by [@​renovate](https://github.com/renovate ) in https://github.com/alecthomas/chroma/pull/1025 
-   fix(nix): nix lexor missing '=' operator by [@​FlyingStitchman](https://github.com/FlyingStitchman ) in https://github.com/alecthomas/chroma/pull/1031 
-   Add WebVTT lexer ([#​707](https://github.com/alecthomas/chroma/issues/707 )) by [@​dschuessler](https://github.com/dschuessler ) in https://github.com/alecthomas/chroma/pull/1032 
#### New Contributors
-   [@​comfysage](https://github.com/comfysage ) made their first contribution in https://github.com/alecthomas/chroma/pull/970 
-   [@​avih7531](https://github.com/avih7531 ) made their first contribution in https://github.com/alecthomas/chroma/pull/977 
-   [@​wackbyte](https://github.com/wackbyte ) made their first contribution in https://github.com/alecthomas/chroma/pull/979 
-   [@​oliverpool](https://github.com/oliverpool ) made their first contribution in https://github.com/alecthomas/chroma/pull/982 
-   [@​DevDimov](https://github.com/DevDimov ) made their first contribution in https://github.com/alecthomas/chroma/pull/983 
-   [@​msorc](https://github.com/msorc ) made their first contribution in https://github.com/alecthomas/chroma/pull/984 
-   [@​Nicd](https://github.com/Nicd ) made their first contribution in https://github.com/alecthomas/chroma/pull/990 
-   [@​Booklordofthedings](https://github.com/Booklordofthedings ) made their first contribution in https://github.com/alecthomas/chroma/pull/995 
-   [@​konradreiche](https://github.com/konradreiche ) made their first contribution in https://github.com/alecthomas/chroma/pull/998 
-   [@​fredrare](https://github.com/fredrare ) made their first contribution in https://github.com/alecthomas/chroma/pull/1002 
-   [@​SKalt](https://github.com/SKalt ) made their first contribution in https://github.com/alecthomas/chroma/pull/1010 
-   [@​quartercastle](https://github.com/quartercastle ) made their first contribution in https://github.com/alecthomas/chroma/pull/1021 
-   [@​cloudchamb3r](https://github.com/cloudchamb3r ) made their first contribution in https://github.com/alecthomas/chroma/pull/1008 
-   [@​CarterLi](https://github.com/CarterLi ) made their first contribution in https://github.com/alecthomas/chroma/pull/1022 
-   [@​dwagelaar](https://github.com/dwagelaar ) made their first contribution in https://github.com/alecthomas/chroma/pull/1024 
-   [@​FlyingStitchman](https://github.com/FlyingStitchman ) made their first contribution in https://github.com/alecthomas/chroma/pull/1031 
-   [@​dschuessler](https://github.com/dschuessler ) made their first contribution in https://github.com/alecthomas/chroma/pull/1032 
**Full Changelog**: https://github.com/alecthomas/chroma/compare/v2.14.0...v2.15.0 
</details>
---
### Configuration
📅  **Schedule**: Branch creation - "* 0-3 * * *" (UTC), Automerge - "* 0-3 * * *" (UTC).
🚦  **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕  **Ignore**: Close this PR and you won't be reminded about this update again.
---
 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS45MC4wIiwidXBkYXRlZEluVmVyIjoiMzkuOTAuMCIsInRhcmdldEJyYW5jaCI6ImZvcmdlam8iLCJsYWJlbHMiOlsiZGVwZW5kZW5jeS11cGdyYWRlIiwidGVzdC9ub3QtbmVlZGVkIl19-->
Co-authored-by: Gusted <postmaster@gusted.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6477 
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org> 
							
						 
						
							2025-01-06 04:11:25 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									TheFox0x7 
								
							 
						 
						
							
							
								
							
							
	4de909747b  
						 
						
							
							
								
								
								Add testifylint to lint checks ( #4535 )  
							
							... 
							
							
							
							
							go-require lint is ignored for now
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4535 
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: TheFox0x7 <thefox0x7@gmail.com>
Co-committed-by: TheFox0x7 <thefox0x7@gmail.com> 
							
						 
						
							2024-07-30 19:41:10 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Gusted 
								
							 
						 
						
							
							
								
							
							
	
	
	a2442793d2 
 
						 
						
							
							
								
								
								[BUG] Fix relative links on orgmode  
							
							... 
							
							
							
							
							- For regular non-image nonvideo links, they should be made relative,
this was done against `r.Ctx.Links.Base`, but since 637451a45e#2166  _fixed_ relative links.
- Media is not affected, `TestRender_Media` test doesn't fail.
- Adds unit tests.
- Ref https://codeberg.org/Codeberg/Community/issues/1485  
							
						 
						
							2024-02-18 21:09:35 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Gusted 
								
							 
						 
						
							
							
								
							
							
	
	
	2ed825c5be 
 
						 
						
							
							
								
								
								[GITEA] Fix orgmode link resolver for text descriptions  
							
							... 
							
							
							
							
							- It's possible that the description of an `Regularlink` is `Text` and not
another `Regularlink`. Therefor if it's `Text`, convert it to an
`Regularlink` trough the 'old' behavior (pass it trough `org.String` and
trim `file:` prefix).
- Adds unit tests.
- Resolves https://codeberg.org/Codeberg/Community/issues/1430 
(cherry picked from commit 385fc6ee6b 
							
						 
						
							2024-02-05 16:57:56 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	637451a45e 
 
						 
						
							
							
								
								
								Rework markup link rendering ( #26745 )  
							
							... 
							
							
							
							
							Fixes  #26548 
This PR refactors the rendering of markup links. The old code uses
`strings.Replace` to change some urls while the new code uses more
context to decide which link should be generated.
The added tests should ensure the same output for the old and new
behaviour (besides the bug).
We may need to refactor the rendering a bit more to make it clear how
the different helper methods render the input string. There are lots of
options (resolve links / images / mentions / git hashes / emojis / ...)
but you don't really know what helper uses which options. For example,
we currently support images in the user description which should not be
allowed I think:
<details>
  <summary>Profile</summary> 
https://try.gitea.io/KN4CK3R 

</details>
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
						
							2024-01-15 08:49:24 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	481e738e7f 
 
						 
						
							
							
								
								
								Remove title from elements on Org mode ( #27968 )  
							
							... 
							
							
							
							
							The Org mode rendering has some problems:
1.  `[[https://example.com ][pre https://example.com/example.mp4  post]]`
 renders as
`<p><a href="https://example.com " title="pre <video
src="https://example.com/example.mp4 "
title="https://example.com/example.mp4 ">https://example.com/example.mp4 </video>
post">pre <video src="https://example.com/example.mp4 "
title="https://example.com/example.mp4 ">https://example.com/example.mp4 </video>
post</a></p>`
As you can see, the `title` attribute contains the inner html in
unescaped form. I removed the `title` attribute because it is of little
value.
3. The `title` attribute on `img` and `video` is of little value.
4. The inner elements of `video` are different depending on the `if`. 
							
						 
						
							2023-11-10 01:45:13 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Earl Warren 
								
							 
						 
						
							
							
								
							
							
	
	
	79afd280e1 
 
						 
						
							
							
								
								
								fix media description render for orgmode ( #26895 )  
							
							... 
							
							
							
							
							- In org mode you can specify an description for media via the following
syntax `[[description][media link]]`. The description is then used as
title or alt.
- This patch fixes the rendering of the description by seperating the
description and non-description cases and using `org.String()`.
- Added unit tests.
- Inspired by
6eb20dbda9/org/html_writer.go (L406-L427)https://codeberg.org/Codeberg/Community/issues/848 
(cherry picked from commit 8b8aab8311 
							
						 
						
							2023-09-13 05:44:59 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jonathan Tran 
								
							 
						 
						
							
							
								
							
							
	
	
	4de80392bc 
 
						 
						
							
							
								
								
								Add context when rendering labels or emojis ( #23281 )  
							
							... 
							
							
							
							
							This branch continues the work of #23092  and attempts to rid the
codebase of any `nil` contexts when using a `RenderContext`.
Anything that renders markdown or does post processing may call
`markup.sha1CurrentPatternProcessor()`, and this runs
`git.OpenRepository()`, which needs a context. It will panic if the
context is `nil`. This branch attempts to _always_ include a context
when creating a `RenderContext` to prevent future crashes.
Co-authored-by: Kyle D <kdumontnu@gmail.com> 
							
						 
						
							2023-03-05 22:59:05 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									flynnnnnnnnnn 
								
							 
						 
						
							
							
								
							
							
	
	
	e81ccc406b 
 
						 
						
							
							
								
								
								Implement FSFE REUSE for golang files ( #21840 )  
							
							... 
							
							
							
							
							Change all license headers to comply with REUSE specification.
Fix  #16132 
Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com> 
							
						 
						
							2022-11-27 18:20:29 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	ec0a06e52c 
 
						 
						
							
							
								
								
								Upgrade chroma to v2.3.0 ( #21259 )  
							
							... 
							
							
							
							
							The behaviour of `PreventSurroundingPre` has changed in
https://github.com/alecthomas/chroma/pull/618  so that apparently it now
causes line wrapper tags to be no longer emitted, but we need some form
of indication to split the HTML into lines, so I did what
https://github.com/yuin/goldmark-highlighting/pull/33  did and added the
`nopWrapper`.
Maybe there are more elegant solutions but for some reason, just
splitting the HTML string on `\n` did not work.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2022-09-26 13:50:03 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									6543 
								
							 
						 
						
							
							
								
							
							
	
	
	54e9ee37a7 
 
						 
						
							
							
								
								
								format with gofumpt ( #18184 )  
							
							... 
							
							
							
							
							* gofumpt -w -l .
* gofumpt -w -l -extra .
* Add linter
* manual fix
* change make fmt 
							
						 
						
							2022-01-20 18:46:10 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jelle Hulter 
								
							 
						 
						
							
							
								
							
							
	
	
	bbd30787d3 
 
						 
						
							
							
								
								
								Updated Chroma to v0.10.0 ( #18270 )  
							
							
							
							
						 
						
							2022-01-20 17:59:15 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									zeripath 
								
							 
						 
						
							
							
								
							
							
	
	
	623d2dd411 
 
						 
						
							
							
								
								
								Prevent panic in Org mode HighlightCodeBlock ( #17140 )  
							
							... 
							
							
							
							
							When rendering source in org mode there is a mistake in the highlight code that
causes a panic.
This PR fixes this.
Fix  #17139 
Signed-off-by: Andrew Thornton <art27@cantab.net> 
							
						 
						
							2021-09-24 14:29:32 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Lunny Xiao 
								
							 
						 
						
							
							
								
							
							
	
	
	9d99f6ab19 
 
						 
						
							
							
								
								
								Refactor renders ( #15175 )  
							
							... 
							
							
							
							
							* Refactor renders
* Some performance optimization
* Fix comment
* Transform reader
* Fix csv test
* Fix test
* Fix tests
* Improve optimaziation
* Fix test
* Fix test
* Detect file encoding with reader
* Improve optimaziation
* reduce memory usage
* improve code
* fix build
* Fix test
* Fix for go1.15
* Fix render
* Fix comment
* Fix lint
* Fix test
* Don't use NormalEOF when unnecessary
* revert change on util.go
* Apply suggestions from code review
Co-authored-by: zeripath <art27@cantab.net>
* rename function
* Take NormalEOF back
Co-authored-by: zeripath <art27@cantab.net> 
							
						 
						
							2021-04-19 18:25:08 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									zeripath 
								
							 
						 
						
							
							
								
							
							
	
	
	9fdb4f887b 
 
						 
						
							
							
								
								
								Update to go-org 1.3.2 ( #12728 )  
							
							... 
							
							
							
							
							* Update to go-org 1.3.2
Fix  #12727 
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix unit test
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
							
						 
						
							2020-09-05 11:45:10 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Lauris BH 
								
							 
						 
						
							
							
								
							
							
	086a46994a  
						 
						
							
							
								
								
								Rewrite markdown rendering to blackfriday v2 and rewrite orgmode rendering to go-org ( #8560 )  
							
							... 
							
							
							
							
							* Rewrite markdown rendering to blackfriday v2.0
* Fix style
* Fix go mod with golang 1.13
* Fix blackfriday v2 import
* Inital orgmode renderer migration to go-org
* Vendor go-org dependency
* Ignore errors :/
* Update go-org to latest version
* Update test
* Fix go-org test
* Remove unneeded code
* Fix comments
* Fix markdown test
* Fix blackfriday regression rendering HTML block 
							
						 
						
							2019-10-31 01:06:25 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Ethan Koenig 
								
							 
						 
						
							
							
								
							
							
	7b104f0cd0  
						 
						
							
							
								
								
								Populate URL field of API commits ( #3546 )  
							
							... 
							
							
							
							
							* Populate URL field of API commits
* fix orgmode_test 
							
						 
						
							2018-02-20 20:50:42 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Lunny Xiao 
								
							 
						 
						
							
							
								
							
							
	0d80af649a  
						 
						
							
							
								
								
								Add init support of orgmode document type on file view and readme ( #2525 )  
							
							... 
							
							
							
							
							* add init support of orgmode document type on file view and readme
* fix imports
* fix imports and readmeExist
* fix imports order
* fix format
* remove unnecessary convert 
							
						 
						
							2017-09-21 13:20:14 +08:00