vrite icon indicating copy to clipboard operation
vrite copied to clipboard

Feat: Gist embeds

Open taciturnaxolotl opened this issue 2 years ago • 4 comments

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>

taciturnaxolotl avatar Aug 31 '23 17:08 taciturnaxolotl

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?

areknawo avatar Aug 31 '23 17:08 areknawo

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

taciturnaxolotl avatar Aug 31 '23 17:08 taciturnaxolotl

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.

areknawo avatar Aug 31 '23 18:08 areknawo

Thank you! I will check out Github sync.

taciturnaxolotl avatar Aug 31 '23 18:08 taciturnaxolotl