w3c / mailing-list-archives

Modernizing W3C's mailing list archives
https://w3c.github.io/mailing-list-archives/samples/
19 stars 12 forks source link

Apply some formatting to messages (optional) #14

Closed tripu closed 8 years ago

tripu commented 8 years ago

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.)

tripu commented 8 years ago

Rebased and merged (got green light from @gosko).

gosko commented 8 years ago

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)

tripu commented 8 years ago

Definitely, @gosko. It was laziness from my part, calling it MD all this time. Will be fixed with #28.