Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How do I retrieve a Google Doc in Markdown format? #267

Answered by jpoehnelt
markmcd asked this question in Q&A
Discussion options

I have a pretty simple Doc that I want to pull into another system, so simple markdown would do (and is pretty token-efficient - 2k in MD vs 53k in JSON).

How can I use gws for this? The only --format options that help lists are json (default), table, yaml, csv.

You must be logged in to vote

It's going to be the export drive method. https://developers.google.com/workspace/drive/api/reference/rest/v3/files/export

Should map to gws drive files export with the mimeType

Replies: 1 comment 1 reply

Comment options

It's going to be the export drive method. https://developers.google.com/workspace/drive/api/reference/rest/v3/files/export

Should map to gws drive files export with the mimeType

You must be logged in to vote
1 reply
Comment options

Thank you!

Answer selected by jpoehnelt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /