Affected by GO-2023-1894
and 1 other vulnerabilities
GO-2023-1894: code.gitea.io/gitea Open Redirect vulnerability
GO-2024-3056: Gitea Cross-site Scripting Vulnerability in code.gitea.io/gitea
package
Version:
v1.18.0-rc1
Opens a new window with list of versions in this module.
Published: Nov 24, 2022
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 237
Opens a new window with list of known importers.
Documentation
¶
Code returns a HTML version of code string with chroma syntax highlighting classes
CodeFromLexer returns a HTML version of code string with chroma syntax highlighting classes
File returns a slice of chroma syntax highlighted HTML lines of code
NewContext loads custom highlight map from local config
PlainText returns non-highlighted HTML for code
Source Files
¶
Click to show internal directories.
Click to hide internal directories.