App Icon
ed.bacher
•  254,191
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
Michael E. Gruen
April 22, 2021
Near perfect. Nice! Any plans on doing the reverse? (Markdown to Google Doc?) While Google Doc will ingest an HTML render of the markdown just fine, it doesn't preserve the default styles which makes editing annoying.
Is this review helpful?
Yes
No
Profile Picture
Tim Stepro
April 14, 2021
Does most of the translation successfully. A glitch here and there may require some minor cleanup. Feature request: Please include the suggestions from the google docs in the translation. This would be a game changer then.
Is this review helpful?
Yes
No
Profile Picture
Josh Kemmer
April 10, 2021
This is the best current solution I think there is for free, team-wide collaboration on markdown docs...especially since it allows people on the team who don't necessarily know markdown to contribute. I have 2 requests: 1. Allow a "Save to markdown (.md) feature if possible. This would be nice so we don't have to copy and paste to another program if we're hoisting local markdown files vs pasting them into a CMS, etc. 2. Get rid of the extra spaces between a markdown list item character and the actual list item. When I create a list, the generated markdown is usually "*_ _ _ list item" instead of "*_ list item". These extra spaces render in some other markdown programs and are annoying to format.
Is this review helpful?
Yes
No
Profile Pciture
Ed Bacher
April 10, 2021
Thanks for the comments, Josh. I'll definitely try to fix the list space issue you mention on #2. As for #1, we could save a separate (new) Drive file, but that would require much more intrusive permissions (manage Drive files). I've purposely kept this to reading only the current file so the add-on doesn't have even the possibility of messing with other Drive files.
Profile Picture
Krishna Vadakattu
March 26, 2021
Does what you want easily, has helpful warnings Looks like it adds many line breaks in the export, but the markdown renders as expected
Is this review helpful?
Yes
No
Profile Picture
Sylvi Elakha
March 14, 2021
It works fairly well, but I'm using this to post to AO3, and the types of HTML they allow don't *quite* match up with the types used by this add-on, so I always have to dig into the output and tweak things before posting. An option to change how it handles alignment and stuff would be helpful. Worked 100% for posting to my personal site, though.
Is this review helpful?
Yes
No
Profile Pciture
Ed Bacher
March 15, 2021
I'll check out the AO3 guidelines to see if there's anything simple we can do. Formatting and alignment generally doesn't matter to HTML servers, but some platforms are more picky about formatting than the servers themselves.
Profile Picture
Nicholas Johnson
March 14, 2021
Amazing
Is this review helpful?
Yes
No
Profile Pciture
Ed Bacher
March 15, 2021
My favorite short review -- thanks!
Profile Picture
Bhasker Raj
March 10, 2021
Very useful for converting docs into HTML easily
Is this review helpful?
Yes
No
Profile Pciture
Ed Bacher
March 15, 2021
Thanks -- glad to hear it's useful for you!
Profile Picture
Caedmon Mullin
March 9, 2021
Worked pretty much perfectly for me - not sure why the previous reviewer got their knickers in such a twist.
Is this review helpful?
Yes
No
Profile Pciture
Ed Bacher
March 9, 2021
Thanks!
Profile Picture
Andrew Chalk
March 8, 2021
Does not work! Never tested before release. This is like a return to 1980s bulletin board software. The author should take up another profession.
Is this review helpful?
Yes
No
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
1-10 of 48
Additional information
ed.bacher
Support
Terms of Service
Search
Clear search
Close search
Google apps
Main menu