gdocs2md icon indicating copy to clipboard operation
gdocs2md copied to clipboard

script crashes when italic hyperlink with "/" in parentesis

Open omarcostahamido opened this issue 4 years ago • 4 comments

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 avatar Jan 27 '21 09:01 omarcostahamido

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

omarcostahamido avatar Jan 27 '21 09:01 omarcostahamido

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.

evbacher avatar Jan 27 '21 13:01 evbacher

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 avatar Jan 27 '21 18:01 omarcostahamido

I think I fixed it here.

If you'd like to give it a look.

omarcostahamido avatar Feb 23 '21 19:02 omarcostahamido