One suggestion: use Pandoc to convert Markdown to docx, then import to Google Docs using the Google Drive API. You can also accomplish this using the Google Drive web interface: Convert markdown to ODT (or some other intermediate) using pandoc: pandoc MyFile.md -f markdown -t odt -s -o MyFile.odt; Move the ODT file into your Google Drive folder. From idea to code in seconds, build and learn alongside the most creative coders on the Web.
Markdown is a lightweight and easy-to-use syntax for styling all forms of writing on the GitHub platform.
What you will learn:
- How the Markdown format makes styled collaborative editing easy
- How Markdown differs from traditional formatting approaches
- How to use Markdown to format text
- How to leverage GitHub’s automatic Markdown rendering
- How to apply GitHub’s unique Markdown extensions

What is Markdown?
Markdown is a way to style text on the web. You control the display of the document; formatting words as bold or italic, adding images, and creating lists are just a few of the things we can do with Markdown. Mostly, Markdown is just regular text with a few non-alphabetic characters thrown in, like #
or *
.
You can use Markdown most places around GitHub:
- Comments in Issues and Pull Requests
- Files with the
.md
or.markdown
extension
For more information, see “Writing on GitHub” in the GitHub Help.
Examples
Syntax guide
Here’s an overview of Markdown syntax that you can use anywhere on GitHub.com or in your own text files.
Headers
Emphasis
Lists
Unordered
Ordered
Images
Links
Blockquotes
Inline code
GitHub Flavored Markdown
GitHub.com uses its own version of the Markdown syntax that provides an additional set of useful features, many of which make it easier to work with content on GitHub.com.
Note that some features of GitHub Flavored Markdown are only available in the descriptions and comments of Issues and Pull Requests. These include @mentions as well as references to SHA-1 hashes, Issues, and Pull Requests. Task Lists are also available in Gist comments and in Gist Markdown files.
Syntax highlighting
Here’s an example of how you can use syntax highlighting with GitHub Flavored Markdown:
You can also simply indent your code by four spaces:
Here’s an example of Python code without syntax highlighting:

Task Lists
If you include a task list in the first comment of an Issue, you will get a handy progress indicator in your issue list. It also works in Pull Requests!
Tables
You can create tables by assembling a list of words and dividing them with hyphens -
(for the first row), and then separating each column with a pipe |
:
Would become:
First Header | Second Header |
---|---|
Content from cell 1 | Content from cell 2 |
Content in the first column | Content in the second column |
SHA references
Any reference to a commit’s SHA-1 hash will be automatically converted into a link to that commit on GitHub.
Issue references within a repository
Any number that refers to an Issue or Pull Request will be automatically converted into a link.
Username @mentions
Typing an @
symbol, followed by a username, will notify that person to come and view the comment. This is called an “@mention”, because you’re mentioning the individual. You can also @mention teams within an organization.
Automatic linking for URLs
Any URL (like http://www.github.com/
) will be automatically converted into a clickable link.
Strikethrough
Any word wrapped with two tildes (like ~~this~~
) will appear crossed out.
Emoji
GitHub supports emoji!
To see a list of every image we support, check out the Emoji Cheat Sheet.
Last updated Jan 15, 2014
POST
Author: Alan Richardson
I want to collaborate with people on Markdown based writing. Google Docs is a great collaborative writing environment. But it keeps adding formatting when I don’t want it to, so how can I use it to edit markdown. In this post I will tell you how to do that.
Cutting to the chase: type in your markdown and press ctrl+z
everytime Google Doc adds formatting, save as .txt
Markdown is a text based writing markup language, which you feed into other programs to convert to pdf, html, slides, etc.
I use it all the time. Running the Markdown through Marp to create slides, Dillinger.io for adhoc documents, and Pandoc for more formal documents.
I mainly use a subset of markdown.
When I am creating slides I only really use the following constructs
If Google docs can allow me to create the above then I would be fine.
There are Chrome plugins that claim to help with this. But I really want a no-addon approach.

What are the Google Docs Output options?
Google Docs Convert To Html
The following options look most promising.
.png?1455289444)
Web Page (.html, zipped)
Plain text (.txt)
What happens if I create a doc and export as html?
I created a Google Doc - formatted as though it was the Markdown rendering.

I exported the .html
as a zip from Google Docs.
I tried to use online services to convert HTML to Markdown.
It didn’t completely work.
- Dillinger.io
- links are Googlised
- bold and italics are missing
- no image marker
Bonus: I learned that a horizontal line is also ***
and not just ---
What happens if I create a doc and export as text?
Using the same Google Doc, I tried to export as text.
What works?
- horizontal lines
- links that are .com
- bulleted lists
Nothing else.
But that defeats the point
The biggest pain of using Google Docs as a Markdown editor is the continual reformatting of what you type into formatted text. But if you get used to typing ctrl+z
every time this happens then you will be fine. I experience a similar problem when I type Markdown directly into Evernote, although it doesn’t reformat the text quite as much.
- bullets auto convert into bullets
- this exports OK
- or
ctrl+z
to remove formatting
- images you will have to export as html
- save as zipped html and find the images
- publish as html and save the images
- bold works fine
- underscore works fine
- end comments converts into a unicode graphic -
cntrl+z
fixes it
Save as .txt
.
- Paste the contents of
.txt
into Dillinger.io. - Open the
.txt
file into Dillinger.io. - Open the
.txt
file in Marp
Google Docs To Markdown Download
Since I’m collaborating on a set of slides. Opening in Marp is my preferred option since I can see the actual slides generated.
It is possible to use Google Docs as a markdown editor, just remember to use ctrl+z
a lot.
I’m collaborating with someone who does not really know Markdown. So at the start of our shared Google Doc I have a comment which has these instructions in it.
You just have to take a little care. And since you get to edit as you share. That’s a price that seems fair.
- Related:
