suchnsuch / Tangent

The publicly-available modules of the Tangent project.
141 stars 8 forks source link

Embed links are being broken up into their own discrete sections. #111

Open taylorhadden opened 1 week ago

taylorhadden commented 1 week ago

For example:

![[Test Image.jpg|500]]

Will be rendered as multiple <t-link> elements, one for each sub-span. This is different from how normal links work, where the elements are merged together as expected.

taylorhadden commented 1 week ago

This is happening because rendering.ts->mergeChildren() only merges nodes that are marked as a format type. The solution may be to mark the t-link elements as a t-link and set up the embed system to wrap it.

That said, the inability for typewriter to handle merging content like this is obnoxious.