After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 739464 - Format Markdown-like text
Format Markdown-like text
Status: RESOLVED OBSOLETE
Product: geary
Classification: Other
Component: composer
master
Other Linux
: Normal enhancement
: ---
Assigned To: Geary Maintainers
Geary Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-10-31 19:12 UTC by Jim Nelson
Modified: 2021-07-05 13:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jim Nelson 2014-10-31 19:12:10 UTC
As requested (bug #737121), it would be useful to render Markdown or Markdown-style text in the conversation viewer.  In the least, it would be useful to convert *bold* and _italic_ into formatted versions.  Other possible conversions include bullet lists, ordered lists, and code.

One question here is if to use a full-blown Markdown parser or to hand-roll a partial version.  There is ongoing work to standarize Markdown, but as I don't see full-blown Markdown emails going around (especially emails w/ Content-Types of "text/x-markdown" or similar), then I suspect what we'll need to use is a hand-rolled parser that captures the subset we're interested in.

See also:

http://commonmark.org/
http://talk.commonmark.org/t/welcome-to-commonmark-discussion/8
http://stackoverflow.com/questions/10701983/what-is-the-mime-type-for-markdown
Comment 1 alfc 2016-08-30 21:49:27 UTC
Markdown including TeX math formulas would be so sweet!

(here is is a markdown extension for Firefox/Gmail that be be used for references of features http://markdown-here.com/features.html)
Comment 2 Michael Gratton 2017-12-12 13:02:00 UTC
Ideally, this would support at least text formatting for **bold** and *italic*, for both unordered lists:

> * Item A
> * Item B

And ordered lists:

> 1. The first
> 2. The second

Bonus points would include support for `inline code` and code blocks:

> ```
> Some code
> ```

And combo points for links:

> [Link][1]
> ⋮
> [1]: http://b.org

Support for these could be indicated by only hiding unsupported elements in the composer when not in rich text mode, e.g. by keeping bold and italic visible, and only hiding underline and strike-through.
Comment 3 GNOME Infrastructure Team 2021-07-05 13:28:33 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/geary/-/issues/

Thank you for your understanding and your help.