Closed tripu closed 8 years ago
Rebased and merged (got green light from @gosko).
I am in favor of displaying messages nicer by default, but I don't think it should be referred to as 'markdown formatting' since people aren't sending messages written as markdown, and because many people might not even know what markdown is.
I suggest we simply try to format messages nicely by default and provide the user with a way to disable any smart formatting and display the message as formatted by hypermail in a less pretty but more predictable format. (since it will be impossible to get the smart formatting right for every message)
Definitely, @gosko. It was laziness from my part, calling it MD all this time. Will be fixed with #28.
Using jQuery and markdown-it, format the body of messages as if it were Markdown: *italics*, **bold**, indented paragraphs will be monospaced,
> quotes
will be indented and in italics, consecutive lines wrap around unless there's a blank like in between, etc.On top of what markdown-it does, we are looking for chunks of text that look like URLs, and adding hyperlinks there.
A checkbox appears that allows the user to toggle this (it's on by default).
If there's no JS, nothing happens and the message displays normally. All processing is client-side.
(It's one of three improvements recycled from #5.)