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

Feat: Gist embeds #32

Open
kcoderhtml opened this issue Aug 31, 2023 · 4 comments
Open

Feat: Gist embeds #32

kcoderhtml opened this issue Aug 31, 2023 · 4 comments
Milestone

Comments

@kcoderhtml
Copy link

It would be a nice to have as an embed option in addition to the already implemented CodePen and CodeSandbox integrations.

This could be fairly easily implemented by having people provide a link and putting it into the following template

<script src="https://gist.github.com/${username}/${id}.js"></script>
@areknawo
Copy link
Collaborator

Indeed should be too difficult to implement. Out of curiosity - what's your use case for Gists that the built-in code blocks can't handle?

@kcoderhtml
Copy link
Author

Having a version controlled system to manage the content mostly, but also being able to update the code without rebuilding the website.

@areknawo
Copy link
Collaborator

Easy code updates make sense, though you have the drawback of having to edit the blocks separately. I can it being useful though and will try to add it in the next release.

As for version control, I plan to add a built-in system to create and manage versions directly in Vrite.

In case you haven't seen it, there's also a new built-in support for GitHub sync in case you want to version control your entire Markdown content.

Updated docs for that are in the works, but a blog post is available.

@kcoderhtml
Copy link
Author

Thank you! I will check out Github sync.

@areknawo areknawo added this to the v0.4 milestone Nov 14, 2023
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