Documentation ¶ Index ¶ type Image func (p Image) Convert(commentHTML string) string func (p Image) Routes() chi.Router Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Image ¶ type Image struct { RemarkURL string RoutePath string Enabled bool } Image extracts image src from comment's html and provides proxy for them this is needed to keep remark42 running behind of HTTPS serve all images via https func (Image) Convert ¶ func (p Image) Convert(commentHTML string) string Convert all img src links without https to proxied links func (Image) Routes ¶ func (p Image) Routes() chi.Router Routes returns router group to respond to proxied request Source Files ¶ View all Source files image.go Click to show internal directories. Click to hide internal directories.