Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hope to add /export/{format} to render raw svg/png directly #20

Open
morlay opened this issue Jan 6, 2023 · 4 comments
Open

Hope to add /export/{format} to render raw svg/png directly #20

morlay opened this issue Jan 6, 2023 · 4 comments

Comments

@alixander
Copy link
Contributor

alixander commented Jan 6, 2023

@morlay Yup, D2 will soon have this. E.g. https://github.com/alixander/test-render/edit/main/README.md

@morlay
Copy link
Author

morlay commented Jan 9, 2023

@alixander looks good. but now seems got 403 error when visit directly.

https://api.d2lang.com/render/svg?script=qlDQtVOo5AIEAAD__w==&layout=dagre&theme=101&sketch=1

@alixander
Copy link
Contributor

yes, it's whitelisted to only allow from playground and github right now. Do you have somewhere else specific you'd like to access the api from or are you just testing? @morlay

@morlay
Copy link
Author

morlay commented Jan 10, 2023

@alixander

Now just testing, but hope it could be embed in other doc systems in future.

I found kroki already start to support d2 yuzutech/kroki#1414
If d2-playground have github limited, I have to wait the next release of kroki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants