Export as .textbundle or .bear missing `assets/` as path in image links!

Testing version:
Version 2.1.7 (12567) on MacOS

What were you doing:
Exporting Notes with images and folded sections

What feature did you use:
Export as Bear/textpack or textbundle

What happened:
When opening exported textbundles in other apps: link to images inside folded sections are broken!

What did you expect to happen:
Expected all image links in text.md to be in the format of ![](assets/imagename.png)
Now they are wrongly exported as ![](imagename.png) (missing assets/) when inside a folded section, but correctly as ![](assets/imagename.png) when sections are unfolded!

For some strange reason: Bear has no problem importing these .textbundle packages back correctly, but in other markdown apps, images are not shown, unless you correct the text.md by adding assets/ to the image link.

Sample file with one folded section showing: ![](panda%202%202.gif) with missing assets/ path: (when sections are unfolded, image links gets exported correctly!)

### Folding
![](assets/folding@2x.png)<!-- {"width":343} -->
Sometimes it helps to hide sections of a note, whether they are a distraction, finished content, or triggering your writer’s block. You can hide any section with headings 1-6.

To hide the currently selected section of a note, click the icon next to the heading text, then click **Toggle Folding**. To expand a hidden section, click the **[…] button** next to the section’s name. Give it a try with the next section ⬇️.
#### Here’s a folded section you can play with -> <!-- {"fold":true} -->
Peekaboo!
![](panda%202%202.gif)

Sample 2, folded on top level: all image links are messed up:

### Folding<!-- {"fold":true} -->
![](folding@2x.png)<!-- {"width":343} -->
Sometimes it helps to hide sections of a note, whether they are a distraction, finished content, or triggering your writer’s block. You can hide any section with headings 1-6.

To hide the currently selected section of a note, click the icon next to the heading text, then click **Toggle Folding**. To expand a hidden section, click the **[…] button** next to the section’s name. Give it a try with the next section ⬇️.
#### Here’s a folded section you can play with -> 
Peekaboo!
![](panda%202%202.gif)

Sample 3, No folding, and all image links are correct and normal:

### Folding
![](assets/folding@2x.png)<!-- {"width":343} -->
Sometimes it helps to hide sections of a note, whether they are a distraction, finished content, or triggering your writer’s block. You can hide any section with headings 1-6.

To hide the currently selected section of a note, click the icon next to the heading text, then click **Toggle Folding**. To expand a hidden section, click the **[…] button** next to the section’s name. Give it a try with the next section ⬇️.
#### Here’s a folded section you can play with -> 
Peekaboo!
![](assets/panda%202%202.gif)

Yes, the path is not correct in this case. Thank you very much we’ll ship a fix a soon as possible.

2 Likes