zadam / trilium-web-clipper

Save web clippings to Trilium Notes.
GNU General Public License v3.0
256 stars 53 forks source link

(Bug report) get weird result in `save whole page` on certain page. #42

Open Nriver opened 2 years ago

Nriver commented 2 years ago

Get weird result in save whole page with this link. https://blog.csdn.net/YOULANSHENGMENG/article/details/124929480 (It's an article about kalman filter.)

Trilium does not show the content of the page, and keeps display another note I opened. Then the panel seem to be freezed. The content does not change even if I open some other normal note. Also, The toc on the right side shows an image in it.

image

zadam commented 2 years ago

Trilium does not show the content of the page, and keeps display another note I opened. Then the panel seem to be freezed. The content does not change even if I open some other normal note.

The problem here is that CKEditor crashes on this scraped note. I don't know why, probably some CKEditor bug. The note can be viewed if switched into read only mode.

Also, The toc on the right side shows an image in it.

That's because the image is for some reason in heading. I added a check to display only text in TOC.