![]() ![]() ![]() Regular Markdown ( markdown) tries to follow the original John Gruber Markdown spec.There are three Markdown flavors currently offered: Google Docs Converter supports a subset of Markdown reflecting the basic elements of a document: headers, lists, links, and styled text (bold, italic, etc.). The Google Docs JSON format is documented here. You may want to surround the URL with quote marks '' to protect against this.įor debugging purposes, you can use the -j flag to pass a local JSON file representing the Google Docs file you wish to convert. NOTE: Google Docs URLs can sometimes include ampersands, question marks, and other characters that may trigger unwanted behavior in your terminal. Google Docs Converter will output the conversion into the console, where you can then pipe it into another utility or redirect it into a file. f, -format Format for conversion: markdown, loose-markdown, org, fountain This utility makes it easy for me to quickly convert a Google Doc into one of those formats and start editing. This app was created because I often work in Google Docs with a partner, but when I'm writing alone, I prefer to write in plain text markup formats like Markdown and Org Mode. Then download those credentials, rename the file to credentials.json and move it to ~/.config/google-docs-converter/.Īfter you have the credentials, when you try to use the CLI for the first time, a web browser window will open and ask you to authorize read-only access to your Google Docs. Create a project, enable the Google Docs API (readonly is fine), and create OAUTH credentials for a Web application with the authorized URI redirect You may also want to put the project into "Testing" mode and authorize your own email address to cut down on warnings from Google about using an unverified project. You can generate the correct credentials using the Google Cloud Console. You'll also need to place a credentials.json file from your Google Developer Account in the folder ~/.config/google-docs-converter/. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |