Getting a new error wit the extension: TypeError: Cannot call method "replace" of null.
When trying to convert doc to MD I get an error above. Never happened before. It happens in only one Doc file.
What could potentially be causing this?
Thanks for filing this bug. It appears to be happening very rarely (although there have been a number in the past week: about 100 times in more than 4 million executions), and it is related to the TOC in the Google Doc, which we use to create intra-doc hyperlinks.
So I am guessing that the doc in question contains some intra-doc links and that there is some problem where the heading ID or the URL is null. I can do some more null checking there.
I'm not sure if you can share view access to the Doc file where this occurs, but if so that would be great to have a reproducible bug.
Not to necrobump the issue, but I am experiencing this as well. As @evbacher mentioned, the issue does appear to be with internal links. My intention is to convert a google doc into markdown for obsidian, so ideally I'd like to be able to customize how internal links are handled. Unfortunately it does not seem as though that is currently possible?
Can you share a Doc that causes this error? I only need view access -- I can make a copy and try to reproduce this and see what's causing it. I have not been able to reproduce it on my own yet.
If I do null checking, the links will just not work, which is probably not what you want.
Thank you @evbacher - removing the TOC Table of Contents from my document solved this error for me 🙇♂