gdocs2md icon indicating copy to clipboard operation
gdocs2md copied to clipboard

Improvments and refactoring

Open jacksonicson opened this issue 10 years ago • 3 comments

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.

jacksonicson avatar Jun 18 '14 19:06 jacksonicson

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

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

mbbroberg avatar Oct 28 '15 11:10 mbbroberg

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

omarcostahamido avatar Oct 03 '20 11:10 omarcostahamido

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

omarcostahamido avatar Oct 04 '20 02:10 omarcostahamido