mirror of
https://github.com/miniflux/v2.git
synced 2025-08-11 17:51:01 +00:00
Add rewrite functions: convert_text_link and nl2br
This commit is contained in:
parent
90064a8cf0
commit
c43c9458a9
3 changed files with 25 additions and 0 deletions
|
@ -35,6 +35,10 @@ func Rewriter(entryURL, entryContent, customRewriteRules string) string {
|
|||
entryContent = addYoutubeVideo(entryURL, entryContent)
|
||||
case "add_pdf_download_link":
|
||||
entryContent = addPDFLink(entryURL, entryContent)
|
||||
case "nl2br":
|
||||
entryContent = replaceLineFeeds(entryContent)
|
||||
case "convert_text_link":
|
||||
entryContent = replaceTextLinks(entryContent)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue