KonghaYao / docsify-drawio

This is a docsify plugin that can convert drawio xml Data to a picture in your docs.
MIT License
14 stars 3 forks source link

Error opening files. #2

Open peptoniet opened 2 years ago

peptoniet commented 2 years ago

Thanks for your work. If I open a compressed file, it does not work. If I open an uncompressed file, it gives error: JSON.parse: unterminated string at line 1 column 180 of the JSON data BUT, if I edit the first line of the file from: <mxfile host="Electron" modified="2021-12-07T12:20:14.136Z" compressed="false" agent="5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/15.8.7 Chrome/91.0.4472.164 Electron/13.6.2 Safari/537.36" version="15.8.7" etag="8210kuws28tPRYDJH6_n" type="device"> To: <mxfile> it displays the file without problems. Again, thank you for your work.