Gnus development mailing list
 help / color / mirror / Atom feed
* markdown washing?
@ 2022-12-21 13:39 Fraga, Eric
  2022-12-21 16:33 ` Björn Bidar
  0 siblings, 1 reply; 5+ messages in thread
From: Fraga, Eric @ 2022-12-21 13:39 UTC (permalink / raw)
  To: ding

Dear all,

I am using rss2email to retrieve mastodon toots.  The resulting email
contents are formatted using markdown, especially for links in the
toots.  Does anybody know of a washing function that will format such
emails more nicely, e.g. with buttons for the links instead of both the
full URL and description?

Thank you,
eric
-- 
Eric S Fraga via gnus (Emacs 30.0.50 2022-12-21) on Debian 11.5

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: markdown washing?
  2022-12-21 13:39 markdown washing? Fraga, Eric
@ 2022-12-21 16:33 ` Björn Bidar
  2022-12-22 10:21   ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: Björn Bidar @ 2022-12-21 16:33 UTC (permalink / raw)
  To: ding


On other hand watch about rendering the markdown inside the email
instead?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: markdown washing?
  2022-12-21 16:33 ` Björn Bidar
@ 2022-12-22 10:21   ` Eric S Fraga
  2022-12-22 10:24     ` Emanuel Berg
  0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2022-12-22 10:21 UTC (permalink / raw)
  To: ding

On Wednesday, 21 Dec 2022 at 18:33, Björn Bidar wrote:
> On other hand watch about rendering the markdown inside the email
> instead?

That is what washing does essentially?  But, in any case, any
suggestions on how to do this?

Thank you,
eric
-- 
Eric S Fraga via gnus (Emacs 30.0.50 2022-12-21) on Debian 11.5



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: markdown washing?
  2022-12-22 10:21   ` Eric S Fraga
@ 2022-12-22 10:24     ` Emanuel Berg
  2022-12-22 15:02       ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: Emanuel Berg @ 2022-12-22 10:24 UTC (permalink / raw)
  To: ding

Eric S Fraga wrote:

>> On other hand watch about rendering the markdown inside the
>> email instead?
>
> That is what washing does essentially? But, in any case, any
> suggestions on how to do this?

Don't follow what kind of stuff you guys wash but I do this:

(defun gnus-article-wash-more ()
  (article-translate-strings
   '(
     ("#+begin_quote\n"          "")
     ("#+end_quote\n"            "")
     ("#+begin_src emacs-lisp\n" "")
     ("#+begin_src r\n"          "")
     ("#+end_src\n"              "")
     ("--8<---------------cut"                     "")
     ("here---------------end--------------->8---" "")
     ("here---------------start------------->8---" "")
     ("Sendt fra min iPad"                         "")
     ("Sent using Zoho Mail"                       "")
     ("Skickades från E-post för Windows 10"       "")
     ("Skickat från Yahoo Mail för iPhone"         "")
     ("naïve" "naive")
     ("ʼ" "'")
     ("⇒" "→")
     ("➜" "→")
     ("⟦" "[")
     ("⟧" "]")
     ("> > > >" ">>>>")
     ("> > >"   ">>>")
     ("> >"     ">>")
     ("colour"  "color")
     ("・" "·")
     (" " " ")
     ))
  (gnus-article-strip-multiple-blank-lines) )

(defun gnus-article-prepare-hook-f ()
  (gnus-with-article-buffer
    (gnus-article-wash-more) ))
(add-hook 'gnus-article-prepare-hook #'gnus-article-prepare-hook-f)

-- 
underground experts united
https://dataswamp.org/~incal



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: markdown washing?
  2022-12-22 10:24     ` Emanuel Berg
@ 2022-12-22 15:02       ` Eric S Fraga
  0 siblings, 0 replies; 5+ messages in thread
From: Eric S Fraga @ 2022-12-22 15:02 UTC (permalink / raw)
  To: ding

Thank you for this.  It might provide the basis for what I need.
-- 
Eric S Fraga via gnus (Emacs 30.0.50 2022-12-21) on Debian 11.5



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-12-22 15:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-21 13:39 markdown washing? Fraga, Eric
2022-12-21 16:33 ` Björn Bidar
2022-12-22 10:21   ` Eric S Fraga
2022-12-22 10:24     ` Emanuel Berg
2022-12-22 15:02       ` Eric S Fraga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).