On Thu, Apr 27, 2017 at 03:46:14PM -0400, Patrick Shanahan wrote:
* Grant Edwards <grant.b.edwa...@gmail.com> [04-27-17 11:21]:
On 2017-04-27, Darac Marjal <mailingl...@darac.org.uk> wrote:
>
>>OK, so how does one do that within mutt?
>
> I would suggest that the most prudent approach is to use a lightweight
> markup language (LML). LMLs tend to be designed such that, while they
> CAN be rendered into a presentation form, the source code is also
> (relatively) legible.
>
> So, let's say I wanted to write something in bold. In HTML that could be
><span style="font-weight:bold">bold</span. In LaTeX, it would be
> \textbf{bold}. But in markdown, it's simply **bold**.

Yes, I've been using Tex/LaTeX for 25+ years, various roff flavors for
30+ years, as well as asciidoc, markdown, and re-strucutred text for
not-quite-as-many years.

> A good LML would have a MIME type associated with it (I see that
> markdown does, but reStructuredText doesn't, for example), so it can
> either be viewed (as source) in the pager or rendered (as presentation
> form) by a mailcap entry.

The question was how to do it _within_ _mutt_ instead of preparing an
HTML or PDF file externally and attaching it.

*attaching* it *is* the way "_winthin_ _mutt_".

mutt is a *text* application, not markup/markdown/html/css/....  the way
you define text on *your* system is what you get, not what is sent or what
you send.

Actually, mutt DOES have some support for more than text/plain. If a
message is in text/enriched type, mutt knows how to render that to the
terminal. I can see that a sufficiently motivated developer could add,
say, a markdown parser there just as easily (or if markdown is too
vague, something as safely-defined as text/enriched).

To me, the larger hurdle is writing messages in a markup language. Is
there any method in mutt to cope with the fact that $EDITOR has just
passed it something other than text/plain (that is, some method OTHER
than ^T on the compose screen)?


--
(paka)Patrick Shanahan       Plainfield, Indiana, USA          @ptilopteri
http://en.opensuse.org    openSUSE Community Member    facebook/ptilopteri
Photos: http://wahoo.no-ip.org/gallery2      Registered Linux User #207535
Photos: http://wahoo.no-ip.org/piwigo            @ http://linuxcounter.net

--
For more information, please reread.

Attachment: signature.asc
Description: PGP signature

Reply via email to