holxsam / tldraw-in-obsidian

A plugin to integrate Tldraw into Obsidian.
Apache License 2.0
121 stars 6 forks source link

Embed shows souce json code #7

Closed kevinhojae closed 3 weeks ago

kevinhojae commented 7 months ago

If I embed tldraw file on the note, it shows raw json source, not the tldraw canvas. Is there any way to show embeded canvas like excalidraw?

tldraw embed

CleanShot 2023-11-17 at 16 03 48@2x

excalidraw embed

CleanShot 2023-11-17 at 16 05 18@2x

holxsam commented 7 months ago

There is not a way to show the canvas as an embed yet. I've been a bit busy so I haven't been able to work on plugin but it's at the top of my list feature wise.

jhoogeboom commented 4 months ago

Perhaps this is useful: https://github.com/kitschpatrol/tldraw-cli?tab=readme-ov-file#api-usage

jon-dez commented 1 month ago

@kevinhojae

I've made a pull request that implements, this feature. See more info here https://github.com/holxsam/tldraw-in-obsidian/pull/22#issuecomment-2154213634

holxsam commented 3 weeks ago

Merged jon's PR and released the update: https://github.com/holxsam/tldraw-in-obsidian/releases/tag/1.0.6