Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions converttomarkdown.gapps
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ Usage:
- Converted doc will be mailed to you. Subject will be "[MARKDOWN_MAKER]...".
*/

function onOpen() {
DocumentApp.getUi().createMenu('Markdown')
.addItem('Email export', 'ConvertToMarkdown')
.addToUi();
};

function ConvertToMarkdown() {
var numChildren = DocumentApp.getActiveDocument().getActiveSection().getNumChildren();
var text = "";
Expand Down