Why can't my website content be loaded and imported correctly?

A browser’s parser is tens of thousands of lines of code and designed to handle malformed HTML as best as possible. TiddlyWiki’s parser is of necessity far more concise and expects well formed HTML that follows the structure used by TiddlyWiki when saving itself. At least one of the files I tested for you the other day didn’t even have a closing HTML tag.

Alright, that seems to be the case.

Are you sure, you did use the preview core? – It seems your wiki uses external core v5.3.7

The preview is a single file wiki, which contains a core with a changed regexp from the PR. So if your wiki loads v5.3.7 the changes are not part of the core.

  • So you need to make sure, to create a new empty wiki using the preview-version.
  • Import Saq’s ExternalContent plugin
  • Configure the test-button from the OP
  • Upload the test wiki to your server
  • Make sure CORS is enabled and works
  • Test the preview

-m

I downloaded the preview version directly for testing. I used the damaged HTML to import it.But it dosn’t work.

The online version of TiddlyWiki above uses an external core. But you can see the offline version below, which has the core packaged inside, so you can download it normally.

That’s strange. I did download both of your wikis and I can drag & drop import them into the preview just fine. I have no clue, what’s different with your setup.

No, the key point is not drag-and-drop import, but directly reading external TiddlyWiki content from the plugin and importing it into your own TiddlyWiki. Drag-and-drop import is normal. However, directly reading external TiddlyWiki content causes problems. This is because the HTML structure of the TiddlyWiki file I packaged has been damaged and cannot be parsed like a normal single TiddlyWiki file.