1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-28 04:41:22 +00:00

chore: Remove WithXXXParser

- Introduced in 88c2e24360 and removed in
the same commit. No usage.
This commit is contained in:
Gusted 2025-01-31 14:25:33 +01:00
parent 4cdfe27c8f
commit 5d52f88c9c
No known key found for this signature in database
GPG key ID: FD821B732837125F
2 changed files with 0 additions and 26 deletions

View file

@ -144,10 +144,6 @@ code.gitea.io/gitea/modules/markup/console
code.gitea.io/gitea/modules/markup/markdown code.gitea.io/gitea/modules/markup/markdown
RenderRawString RenderRawString
code.gitea.io/gitea/modules/markup/markdown/math
WithInlineDollarParser
WithBlockDollarParser
code.gitea.io/gitea/modules/markup/mdstripper code.gitea.io/gitea/modules/markup/mdstripper
stripRenderer.AddOptions stripRenderer.AddOptions
StripMarkdown StripMarkdown

View file

@ -39,28 +39,6 @@ func Enabled(enable ...bool) Option {
}) })
} }
// WithInlineDollarParser enables or disables the parsing of $...$
func WithInlineDollarParser(enable ...bool) Option {
value := true
if len(enable) > 0 {
value = enable[0]
}
return extensionFunc(func(e *Extension) {
e.parseDollarInline = value
})
}
// WithBlockDollarParser enables or disables the parsing of $$...$$
func WithBlockDollarParser(enable ...bool) Option {
value := true
if len(enable) > 0 {
value = enable[0]
}
return extensionFunc(func(e *Extension) {
e.parseDollarBlock = value
})
}
// Math represents a math extension with default rendered delimiters // Math represents a math extension with default rendered delimiters
var Math = &Extension{ var Math = &Extension{
enabled: true, enabled: true,