You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to understand how to encode D2 code into the URL for the online playground: https://play.d2lang.com/
I've noticed the script URL parameter appears to contain encoded D2 code, for example: https://play.d2lang.com/?script=qlDQtVOo5AIEAAD__w%3D%3D. Is there any official documentation that explains this encoding scheme and other URL parameters for the playground?
Thank you
The text was updated successfully, but these errors were encountered:
edwinjhlee
changed the title
Feature Request: Generate URL for d2 files for play.d2lang.com preview
Question: Generate URL for d2 files for play.d2lang.com preview
Dec 13, 2024
I notice currently using compress/flate and basd64 as encoding in the playgroud url.
It is very hard to do such encoding in the shell scenario with curl and native commands.
Is there any other way to pass the file content to the playground ? any attribute other than 'script=' ?
Hello D2 community,
I'm trying to understand how to encode D2 code into the URL for the online playground: https://play.d2lang.com/
I've noticed the
script
URL parameter appears to contain encoded D2 code, for example:https://play.d2lang.com/?script=qlDQtVOo5AIEAAD__w%3D%3D
. Is there any official documentation that explains this encoding scheme and other URL parameters for the playground?Thank you
The text was updated successfully, but these errors were encountered: