1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-22 17:18:37 +00:00

Added new rewrite rules add_hn_links_using_hack and add_hn_links_using_opener to open HN comments with iOS apps

This commit is contained in:
Adriano Di Luzio 2023-09-23 22:54:48 +02:00 committed by GitHub
parent ace2699e79
commit 54cb8fa028
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 104 additions and 0 deletions

View file

@ -113,6 +113,10 @@ func applyRule(entryURL string, entry *model.Entry, rule rule) {
} else {
entry.Content = applyFuncOnTextContent(entry.Content, "body", decodeBase64Content)
}
case "add_hn_links_using_hack":
entry.Content = addHackerNewsLinksUsing(entry.Content, "hack")
case "add_hn_links_using_opener":
entry.Content = addHackerNewsLinksUsing(entry.Content, "opener")
case "parse_markdown":
entry.Content = parseMarkdown(entry.Content)
case "remove_tables":