Live data from Hacker News

Import and Export Markdown in Google Docs

workspaceupdates.googleblog.com

21–30 of 140 posts

Re: Import and Export Markdown in Google Docs

#22
post #17
post #10

Earlier quoted context omitted.

We just have to iterate in the "markdown support feedback/help" pulldown I guess. because without ```code``` it's not useful. Looking at you HN... (ok at least we have 2 indents codeblock)

What would ``` add that you can't already do with two indents? Beyond that, I think support for ```sh type highlighting would be awful, one of the best things about HN is how clean it is, I'd hate to see syntax highlighting or pictures or whatever when scrolling.

> What would ``` add that you can't already do with two indents?

It would let me add those fences before and after the code I’m pasting instead of having to go and add spaces in front of every pasted line. On mobile adding the spaces after pasting is a bit fiddly. Then again, maybe it is a feature because it discourages pasting too many lines of code in many cases.

Re: Import and Export Markdown in Google Docs

#23
i hope they'll eventually support Mermaid (https://github.com/mermaid-js/mermaid) for creating diagrams directly within documents. i've been using it a lot for my markdown files and it works amazingly well with LLMs (e.g. asking LLM to generate the diagram representation of something using Mermaidjs)

Re: Import and Export Markdown in Google Docs

#26
post #21

when did google become sooo sloooow implementing trivial features, and then not even shipping a complete set of markdown?!

> trivial features

Four features were announced:

1. Convert Markdown to Docs content on paste

2. Copy Docs content as Markdown

3. Export a Doc as Markdown (from File > Download)

4. Import Markdown as a Doc (from File > Open or "Open with Google Docs" from Drive)

Which of these do you see as trivial? These all seem quite complex to me with many edge cases , incompatibilities and ambiguities, especially if there's an expectation that you can round trip losslessly.

Re: Import and Export Markdown in Google Docs

#30
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
Post reply on HN