Live data from Hacker News

Import and Export Markdown in Google Docs

workspaceupdates.googleblog.com

71–80 of 140 posts

Re: Import and Export Markdown in Google Docs

#71

My guess is that this is strongly motivated by the success of LLMs. The lack of MD support makes manual IO from Docs to your favorite LLM lossy (or very annoying). Cool that it's fixed.

They also already have to support Gemini to Google Docs and vice versa so it makes sense they'd have to support Markdown in some fashion on the backend.

Re: Import and Export Markdown in Google Docs

#72

I don't see any mention of table support. That will be the first thing I try, I hope it works... if not now, eventually.

They are supported (source: beta tested it internally). We use this markdown feature for some internal workflows where github flavor markdown syntax is used. We've tested this works and ourselves rely on it as well as some other markdown extensions.

Re: Import and Export Markdown in Google Docs

#73

I thought copy as MD existed years ago and then went to look for it recently and it was gone. Now it's back. Am I losing it?

There was partial markdown support (and still is) in gDocs today. AFAIK copy as MD was never supported. But this new feature is full round tripping into and out of gDocs as native markdown.

Re: Import and Export Markdown in Google Docs

#74

Is there an API to export a Google doc as markdown?

Yes, and to import. You mess with the mime types when creating a document or exporting and the conversion operation happens. Standard gdocs APIs cover conversion of formats already with doc files as an example.

Re: Import and Export Markdown in Google Docs

#75
post #9

No support for code blocks still: ```java String x = "xxx"; ``` No quoting: The docs for `libfloof` state: > The floof is 4 bytes long, at most. And when I type `code` with backticks at the start of a line, the word 'code' is formatted as code as expected, but auto-correct automatically capitalises it to 'Code' — which should never be done with code fragments. So this is basically just headings, italics, bold, and li…

This is supported, but it's probably not rolled out to you yet. And once it is rolled out, you need to turn it on yourself. See the blog the developer linked to in a comment.

Re: Import and Export Markdown in Google Docs

#76

Hey folks, I'm the engineer who implemented the new feature. Just clearing up some confusion. A lot of you are noticing the preexisting automatic detection feature from 2022 [1], which I also worked on. That's NOT what this newly announced feature is. The new feature supports full import/export, but it's still rolling out so you're likely not seeing it yet! Hope you like it once it reaches you :) [1] https://workspac…

Google keep…

Re: Import and Export Markdown in Google Docs

#78
post #5

If this is implemented properly it’ll be a game changer for collaboration on papers. Means one can write a paper with colleagues in markdown and then easily knit with pandoc/quarto. Cheaper than overleaf etc.

You can already get most of the way there, as Pandoc supports reading the ODT or DOCX export from Google Docs reasonably well. I have this in my shell history: pandoc --from=docx --to=asciidoc --wrap=none --atx-headers --extract-media=img doc.docx > doc.adoc

Stick downdoc on the end of that pipeline and you're done -- unless you prefer working in AsciiDoc, I guess. Not my thing, but you do you...

https://github.com/opendevise/downdoc

Re: Import and Export Markdown in Google Docs

#79

Hey folks, I'm the engineer who implemented the new feature. Just clearing up some confusion. A lot of you are noticing the preexisting automatic detection feature from 2022 [1], which I also worked on. That's NOT what this newly announced feature is. The new feature supports full import/export, but it's still rolling out so you're likely not seeing it yet! Hope you like it once it reaches you :) [1] https://workspac…

I would have expected this to export CommonMark, but it seems like it's not quite up to that yet. Is that on the board for a future release?

This isn't to say I prefer CM -- because Markdown came into being from Gruber's script. In a literal sense, "Markdown" is defined as whatever `markdown.pl` is, warts and all -- however, contact with the outside world forced things to move in a direction that is (so to speak) more organized that what John originally wrote.

Post reply on HN