* Rendering Content-Type: text/markdown with shr via text/html?
@ 2019-08-02 22:57 Adam Sjøgren via info-gnus-english
2019-08-03 12:22 ` Lars Ingebrigtsen
0 siblings, 1 reply; 3+ messages in thread
From: Adam Sjøgren via info-gnus-english @ 2019-08-02 22:57 UTC (permalink / raw)
To: info-gnus-english
I'm experimenting with posting articles with text/markdown as the
Content-Type.
I was wondering what the easiest way is to have Gnus translate such
articles to HTML and display them via shr, as is done for text/html
articles.
Anyone already tackled this?
I could make the news server do the translation on the fly, but then
supersedes and follow ups will be done on the text/html version, which
would be rather inconvenient, so I'd like it to be purely a display
thing.
Best regards,
Adam
--
"After finishing this exercise, you will probably be Adam Sjøgren
able to provide many really useful patches for Gnus asjo@koldfront.dk
in the future yourself."
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Rendering Content-Type: text/markdown with shr via text/html?
2019-08-02 22:57 Rendering Content-Type: text/markdown with shr via text/html? Adam Sjøgren via info-gnus-english
@ 2019-08-03 12:22 ` Lars Ingebrigtsen
2019-08-03 12:32 ` Adam Sjøgren via info-gnus-english
0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2019-08-03 12:22 UTC (permalink / raw)
To: Adam Sjøgren via info-gnus-english; +Cc: Adam Sjøgren
Adam Sjøgren via info-gnus-english <info-gnus-english@gnu.org> writes:
> I'm experimenting with posting articles with text/markdown as the
> Content-Type.
>
> I was wondering what the easiest way is to have Gnus translate such
> articles to HTML and display them via shr, as is done for text/html
> articles.
>
> Anyone already tackled this?
I don't think so. There's several markdown packages on Marmalade, but
these seem more geared towards generating Markdown, and not displaying
it.
A function to convert Markdown into HTML might be nice, but I haven't
really seen anybody post with Markdown, so I'm not sure how useful this
would be. But I guess it's a chicken and egg problem -- if mail readers
did support rendering Markdown, then people would start writing in
Markdown.
But is that a good thing? :-)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Rendering Content-Type: text/markdown with shr via text/html?
2019-08-03 12:22 ` Lars Ingebrigtsen
@ 2019-08-03 12:32 ` Adam Sjøgren via info-gnus-english
0 siblings, 0 replies; 3+ messages in thread
From: Adam Sjøgren via info-gnus-english @ 2019-08-03 12:32 UTC (permalink / raw)
To: info-gnus-english
Lars writes:
> A function to convert Markdown into HTML might be nice, but I haven't
> really seen anybody post with Markdown, so I'm not sure how useful this
> would be. But I guess it's a chicken and egg problem -- if mail readers
> did support rendering Markdown, then people would start writing in
> Markdown.
>
> But is that a good thing? :-)
Probably not.
I'm abusing nntp¹ to control a blog engine, though, and there it would be
really nice to be able to render text/markdown when viewing an article :-)
Maybe I could just make a washing function that runs the contents
through pandoc, before shr does it's thing?
Best regards,
Adam
¹ It is astonishing how many things nntp is well suited for - forums,
mailing lists, RSS/Atom feeds, and - I think - also blogging.
--
"Vegetarian?? Yecchh! I'm not a vegetarian! Adam Sjøgren
I'm a dessertarian." asjo@koldfront.dk
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-03 12:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-02 22:57 Rendering Content-Type: text/markdown with shr via text/html? Adam Sjøgren via info-gnus-english
2019-08-03 12:22 ` Lars Ingebrigtsen
2019-08-03 12:32 ` Adam Sjøgren via info-gnus-english
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).