Code Medium

#4.64 / 22 rate

Code Medium

2,000 users

2020-03-10

https://manueldellelce...

Extension Information

5 star
90%
4 star
0%
3 star
0%
2 star
0%
1 star
10%

Supported Languages

Permissions

Hot Permissions

Description

Extends the Medium writer interface to quickly create and edit Github Gists, without having to leave the editor.

Features
--------

- Adds a button in the text toolbar for creating a new Gist and adding it to the post.
- Gists can be created as either public or secret (unlisted).
- Double click on an existing Gist to edit or delete it.
- Deleting a gist will remove both the embed from the post and the gist from your account.
To only remove the embed, just click on it and press the delete key as usual.
- Syntax highlighting for the most popular programming languages thanks to react-ace!
- Fixes the height of the Gists in the editor, to display them without being cut and without the extra padding (https://github.com/Maluen/code-medium/issues/3).

Authorizing the application
--------
This extension uses the GitHub Gist API to create and edit gists,
this means that you'll have to authorize the OAuth application for the "gist" permission.

Once the extension is installed, toggle the extension modal by clicking the toolbar button or by double clicking on an existing gist to
show the login button.

Known Limitations
--------

Gists composed of multiple files aren't fully supported:
- Currently, only single-file gists can be created.
- When double clicking on an existing multi-file gist, only the first file will show up in the modal.
However, you can still edit that file normally and delete the whole gist.