aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/mail.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-10 23:07:24 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-10 23:07:24 +0200
commitabe91b14f1742abdfd8f0dc80a38dd8840c5de79 (patch)
tree41696ab580377bafaa4e557d3b0490aa2769d53b /internal/feed/mail.go
parent5e5d848b1324cc5ea3991276f2a0750883e5aab0 (diff)
downloadfeed2imap-go-abe91b14f1742abdfd8f0dc80a38dd8840c5de79.tar.gz
feed2imap-go-abe91b14f1742abdfd8f0dc80a38dd8840c5de79.tar.bz2
feed2imap-go-abe91b14f1742abdfd8f0dc80a38dd8840c5de79.zip
Switch to our own html2text fork for the time being
Diffstat (limited to 'internal/feed/mail.go')
-rw-r--r--internal/feed/mail.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/feed/mail.go b/internal/feed/mail.go
index 4cdc57a..c03a27b 100644
--- a/internal/feed/mail.go
+++ b/internal/feed/mail.go
@@ -11,11 +11,11 @@ import (
"strings"
"time"
+ "github.com/Necoro/html2text"
"github.com/PuerkitoBio/goquery"
"github.com/emersion/go-message"
"github.com/emersion/go-message/mail"
"github.com/gabriel-vasile/mimetype"
- "github.com/jaytaylor/html2text"
"golang.org/x/net/html"
"github.com/Necoro/feed2imap-go/internal/feed/template"
@@ -266,7 +266,7 @@ func (item *item) buildBody() {
}
if feed.Global.WithPartText() {
- if item.TextBody, err = html2text.FromHTMLNode(bodyNode); err != nil {
+ if item.TextBody, err = html2text.FromHTMLNode(bodyNode, html2text.Options{CitationStyleLinks: true}); err != nil {
log.Errorf("Feed %s: Item %s: Error while converting html to text: %s", feed.Name, item.Link, err)
}
}