mangini / gdocs2md

Convert a Google Drive Document to the Markdown format, suitable for publishing.
Apache License 2.0
2.66k stars 621 forks source link

script crashes when italic hyperlink with "/" in parentesis #67

Open omarcostahamido opened 3 years ago

omarcostahamido commented 3 years ago

I have a place in my doc that read:

(word/words)

this format apparently is enough to make this script throw an error ReferenceError: txt is not defined

(@jacksonicson tagging you here because I actually forked from you, if maybe you can help...)

omarcostahamido commented 3 years ago

Before you ask: no I cannot simply go and change the link. It is actually auto generated by zotero...

evbacher commented 3 years ago

I am not sure why this is causing an error. I tried converting a link like (word/words) using the Docs to Markdown add-on. No error, but it did not preserve the italic formatting of the link. That's a bug too, but less serious.

omarcostahamido commented 3 years ago

Dear @evbacher thank you so much for getting back to me on this. Would it be possible to ask you to give a look at this version, to see if you can figure out where I messed up?

Thank you

omarcostahamido commented 3 years ago

I think I fixed it here.

If you'd like to give it a look.