App Icon
ed.bacher
•  214,717
Overview
Open-source Drive add-on that converts a Google Doc to simple, readable Markdown or HTML.
Docs to Markdown (GD2md-html) converts Google Docs to simple, readable Markdown or HTML. Now open-source!

This add-on allows you to create documents using the excellent editing and collaborative features of Google Docs, then convert to Markdown or HTML that you can store as text files using a version-control system.

Note that Docs to Markdown marks up the content (headings, paragraphs, lists, code blocks, etc.) but does not preserve colors and styles in text or tables.

See https://github.com/evbacher/gd2md-html/wiki for docs. See  https://github.com/evbacher/gd2md-html/ for the source.

------------------------------------------
Release information (most recent on top):
- v 1.0β29: Handle partial selections correctly (expand to whole paragraph).
- v1.0β27 (19 June 2020): Copy output to clipboard. Print success/error messages for clipboard output (see chromium bug 1074489). 
- v1.0β26 (6 June 2020): Render soft line breaks correctly in HTML (<br> not &lt;br>).
-v1.0β25: Use image path in this form: images/image1.png, images/image2.png, etc. Clean up old zip image code.
-v1.0β24: Correct a spelling error (s/Supress/Suppress).
-v1.0β23: Copy converted output to the clipboard. Add option to suppress top comment.
-v1.0β22: Roll back font-change runs for now (still causing problems), but keep table note.
-v1.0β21: Add a note that tables are currently converted to HTML tables. No change to rendered conversion.
-v1.0β20: Handle font-change runs with extra whitespace better (italic, bold, etc.).
-v1.0β19 (March 7, 2020): Fix for angle bracket at beginning of a line. Also: use doc title instead of URL in conversion comment.
-v1.0β18 (12 Feb., 2020): Escape HTML tags by default, render them optionally.
- v1.0β17 (5 April, 2019): Convert smart quotes to straight quotes in code, but leave them alone in other text.
- v1.0β16 (25 Feb. 2019): Handle simple nested lists properly in HTML conversion (Markdown already works well).
- v1.0β15 (10 Feb. 2019): Number ordered list items sequentially (instead of using 1. for all items).No change to rendered HTML.
- v1.0β14 (15 Jan. 2019): Name change to Docs to Markdown: now published on G Suite Marketplace.
- v1.0β13 (29 Sept. 2018): Close strikethrough text properly at the end of a paragraph.
- v1.0β12 (24 Sept. 2018) : Convert strikethrough text.
- Revert to: // - 1.0β11: Fix small bug: replace bufout with bufHTML. Remove version number from banner. Retitle.
- v1.0β12 (28 May, 2018): Replace < with &lt; by default. Add option to allow HTML tags. Also allow escape (\<).
- v1.0β11 (24 March, 2018): No effect on output. Remove version number from banner. Retitle.
- v1.0β10 (17 Feb. 2018): Handle soft line-breaks (shift-enter) properly. (Markdown and HTML)
- v1.0β9 (9 Nov. 2017): Handle embedded paragraphs in list items for Markdown.
- v1.0β8 (30 Oct. 2017): Use _ instead of * for italic markup to avoid ambiguity (Markdown).
- v1.0β7 (10 Oct., 2017): Warn if DEBUG is true.
- v1.0β6 (07 Oct., 2017): Ignore headings that are blank or just contain whitespace.
- v1.0β5 (17 Sept., 2017): Warn about multiple H1 headings, but only in the top comment, not inline.
- v1.0β4 (16 Sept., 2017): Don't wrap HTML by default. Add checkbox option to wrap HTML. For footnotes also.
- v1.0β3 (29 July, 2017): Escape angle brackets (<) in HTML code blocks.
- v1.0β2 (15 July, 2017): Check for spurious 0-row table. Fix image path for placeholder links.
- v1.0β (10 July, 2017): Initial release of gd2md-html.
Reviews
Language:
Sort by:
Profile Picture
Dee Pennyway
March 4, 2021
This is a game-changing add-on for me. Would love to see the addition of pipe table support as an option during conversion.
Is this review helpful?
Yes
No
Profile Picture
Stephen Todd
February 21, 2021
Done an excellent job, but just one document so far. We'll see how it goes. Only problem was with an internal link. It came up with the pertinent comment '?Did you generate a TOC?'. Even if I did generate one (with Google Docs menu/insert/Table of Contents) that message still happened.
Is this review helpful?
Yes
No
Profile Picture
Bryan James
February 12, 2021
It did a pretty good job overall. I used it to convert an ~80-page doc with many inline images to markdown. I have to go through and correct at least 50% of the markdown, but it did a nice job of getting it started for me. It would almost certainly be more work to do it all myself. There seems to be many errors with spacing, code block tags, nested list-items, and bold/italics tags that may relate to the spacing.
Is this review helpful?
Yes
No
Profile Pciture
Ed Bacher
February 12, 2021
I'm always looking for opportunities to improve this add-on. I know that nested-list items for HTML are sometimes problematic. What problems are you having with spacing and code blocks? Feel free to file a detailed bug with a link to some sample docs (view-only permission is fine). Thanks!
Profile Picture
Wes Button
January 13, 2021
This add-on is CRITICAL for my workflow. It's the best at what it does. Perfect 5 star.
Is this review helpful?
Yes
No
Profile Pciture
Ed Bacher
January 22, 2021
Thanks for your kind review! Always glad to hear that this is helpful.
Profile Picture
Henke Benke
December 20, 2020
At first it did not work for me. But it came to my mind that I was not the owner of the document I wanted to convert. So I downloaded it (in `.docx` format), and uploaded it into my own Google Drive. I also un-installed and re-installed `Docs to Markdown`. (The first re-installation failed, but the second was successful.) Many, many thanks for providing this wonderfully helpful and extremely time-saving extenstion! For free. 👍
Is this review helpful?
Yes
No
Profile Pciture
Ed Bacher
December 21, 2020
Thanks for the kind review, Henke! If you can view the document, you might be able to copy it to another Google Doc. You probably don't need to the the .docx export and upload. But I'm glad you got it to work in the end.
Profile Picture
Samson Assefa
November 29, 2020
Samson Assefa Gebrehiwot
Is this review helpful?
Yes
No
Profile Picture
Tom Shields
November 11, 2020
Exactly what I needed for simple clean HTML output from Google Docs. Thanks!
Is this review helpful?
Yes
No
Profile Picture
John Baker
October 22, 2020
I've installed the Add-on. Only visible menu item was Help - no Convert option was present. I un-installed and re-installed, same thing. Now, I had a document open already, so it occurred to me (and a friend I phoned) to refresh the browser window. Voila! The Convert option appears. Seems to work just fine, and since we also use a (very)picky markdown Linter, I knew I'd have some clean-up to do. Expectations met, and the automation is appreciated!
Is this review helpful?
Yes
No
Profile Pciture
Ed Bacher
November 16, 2020
I'm glad you got it to work. I think that any open docs don't get updates to any add-ons, so refreshing the tab or window will get the latest versions. What Markdown linter are you using? I can try it out and maybe fix up the converter output in my copious free time :)
Profile Picture
ThornBrier
October 8, 2020
The MAIN reason I got this was to preserve the colors of my text when copying into another page, but no. This converter ignored ALL of my careful color selections, all of the precision hex codes I added for background and text flatly ignored. This is useless to me.
Is this review helpful?
Yes
No
Profile Pciture
Ed Bacher
October 14, 2020
Sorry about that. When I first created this, our main concern was marking up the content correctly with Markdown or HTML. Figuring out background colors and styles hurts performance and it's probably better to do it later with separate CSS. (Or, you can fork the code and add it yourself!)
Profile Picture
Martin Post
October 2, 2020
What can I say? I desperately needed a Google Docs > Markdown tool. This is it. Thank you so much for creating this!
Is this review helpful?
Yes
No
1-10 of 39
Additional information
ed.bacher
Support
Terms of Service
Search
Clear search
Close search
Google apps
Main menu