1
0
Fork 0
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:
Frédéric Guillot 2019-11-28 20:11:39 -08:00
parent 90064a8cf0
commit c43c9458a9
3 changed files with 25 additions and 0 deletions

View file

@ -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)
}
}