How to bring in formatted text from Word into a Discourse post?


(Michel) #1

We are getting ready to publish a lot of wikis.

Our (unsophisticated) users are writing and formatting their documents with Word. Is there a simple way to go from Word to Discourse while preserving links and some formatting?


(Jeff Atwood) #2

There are previous topics on this issue here, yes. I suggest searching?


(Steve Combs) #3

Works great for cut and paste of Rich Text

Also Word to Markdown

Note: Markdown only has bold and italics for emphasis; no underline (must use bbcode)


(Michel) #4

My google fu must not be very good. I did search first, using formatted text keywords.


#5

Discourse markdown largely follows Commonmark and the next Discourse version to be developed, 1.9, will integrate it fully:

The Commonmark site has info on conversion options to and from Microsoft Word, e.g.:


(Michel) #6

@scombs, thanks so much – the Markdown converter took about 95% of the input I have tested so far, that is great.

@Remah, thanks much for the links – this will be a huge help.


(Michel) #7

@codinghorror, now that I have some replies, I can see what I should have searched for :frowning:

A good discussion on MarkDown: https://meta.discourse.org/t/help-me-answer-questions-about-markdown-formatting-from-my-users/25133

Background: a good discussion on WYSIWYG vs MarkDown: https://meta.discourse.org/t/who-would-prefer-a-standard-wysiwyg-to-markdown/31340/36

Simple MarkDown howto: http://commonmark.org/help/
Another simple MarkDown howto: https://superuser.com/editing-help
The latter is @codinghorror’s fave.

John Gruber’s MarkDown syntax write-up (I really like it): http://daringfireball.net/projects/markdown/syntax

Full MarkDown spec (CommonMark v0.27): http://spec.commonmark.org/0.27/
I find it painful to read.

Tim Jarrett’s Word scrubber: https://tim-jarrett.com/labs_javascript_scrub_word.php


(Jeff Atwood) #8

You don’t need the whole spec, just read the one page help and take the tutorial if needed

http://commonmark.org/help


#9

It shouldn’t be an issue because you should avoid underlining altogether. It doesn’t assist with reading speed and comprehension. We don’t need it if we have variable sizing of fonts, bold, italic and colour. You can see that there is none on Discourse.

http://practicaltypography.com/underlining.html

The common exception is underlines on hyperlinks. But, finally, it is losing out to hyperlinks without underlines. Google finally caught on to this a few years ago.


(Jay Pfaffman) #10

Right! The reason that underlining was adopted as a means for indicating emphasis was that typewriters had only one font. Even the American Psychological Association has stopped using it.