mirror of
https://github.com/outline/outline.git
synced 2026-11-21 21:44:30 +03:00
* fix: preserve diagrams.net source through API markdown round-trip Images with source: "diagrams.net" (draw.io embeds) lost their editability when updated through the API (documents.create/update with text). The markdown serializer/deserializer had no slot for the source attribute, so every round-trip through markdown stripped it, downgrading editable diagrams to static images. Encode source as a "source=<value>" token in the markdown title attribute, which already carries layoutClass and size. The token is extracted on parse and emitted on serialize, surviving the full API round-trip. * fix: address image source review feedback Authored-by: Terminus (AI Assistant) <raisalpwardana+terminus@gmail.com> * fix: narrow image test node attributes Authored-by: Terminus (AI Assistant) <raisalpwardana+terminus@gmail.com> * fix: narrow image test attributes Authored-by: Terminus (AI Assistant) <raisalpwardana+terminus@gmail.com> --------- Co-authored-by: Raisal P Wardana <IEatCodeDaily@users.noreply.github.com>