Closed PretzelVector closed 1 year ago
Interesting, it looks like markdown2 converted
![1_1_2](1_1_2.png)
to
<p><img src="1_1_2.png" alt="1<em>1</em>2" /></p>
I've found a solution from a issue about 10 years ago. https://github.com/trentm/python-markdown2/issues/158
This should be fixed by now.
Hello,
trilium-py has been invaluable. Thank you for all your work.
I am using trilium-py version 0.8.2.
After importing an obsidian vault using
obsidian-export
and importing it usingupload_md_folder
, I ended up with a series of images that had the underscores replaced with em tags. For example:2023_abandoned_canyon.png
becomes2023<em>abandoned</em>canyon.png
.Below is a simple python script to fix entries that have been corrupted in that way that worked for me™️ and provides a workaround for the issue.