Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvments and refactoring #25

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

Conversation

jacksonicson
Copy link

This changes will provides a toolbar integration that allows to either export as email or export as files into GDrive. The recursive code architecture allows to parse the whole document tree, even if table cells are formatted. Researchers greatly benefit from a equation export as LaTex.

Improvements

  • Equation support generates latex equations and puts them into the output markdown surrounded by a $ sign.
  • Toolbar integration allows an easier execution of the script.
  • Recursive code architecture makes the code cleaner and readable. A document is a tree like structure. This modifications will walk over the whole document tree recursively. Now the script can handle text formats within table cells or bullet point lists.
  • Markdown documents can be exported directly as files into Google Drive. A warning is presented if files are about to get overwritten.

Changes for discussion

  • Code fencing is implemented the way GitHub flavored markdown does it.
  • Creates GitHub flavored markdown tables instead of HTML tables.

Add support to create Latex strings out of Equation objects.
Removed EMail function. Script creates a new target directory 'target' in the same directory as the document file where everything gets stored.
Added Google docs menu to execute Markdown converter without going through Scripts.
Added support to convert equation under the cursor only.
Added an option to save MD and attachments to GDrive instead of sending emails.
Loss of features: Code sections are not supported right now.
Concerns documents with multiple users.
Added lsitCounters element to the state object
@mbbroberg
Copy link

Really impressive update. One snag -- on export, I get this error: ReferenceError: "DocsList" is not defined.DetailsDismiss.

The email option works perfectly 👌 - thank you for fixing the table layout!

@omarcostahamido
Copy link

+1
I'm also not able. to use the the export to file/google drive option.
please advice

@omarcostahamido
Copy link

I know I'm late to the game, but, should it be of anyone's interest, I managed to fix this here:
https://github.com/omarcostahamido/gdocs2md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants