Repository navigation
Releases
Releases · gioxx/wp-gistful
v0.2.1
- Text domain is now
gistful-for-github, matching the WordPress.org slug, so translations from translate.wordpress.org load.
For the full version history, see CHANGELOG.md.
v0.2.0
- Copy buttons: "Copy" on every code and CSV file and "Copy all" on gists with more than one such file. They copy exactly the lines shown (no line numbers; CSV files copy as CSV rebuilt from the table; Markdown, shown rendered, has no button), announce the result to screen readers and fall back to the legacy copy command on sites without HTTPS. A small deferred script, served from the site, loads only on pages that show a gist with something to copy; without JavaScript nothing changes. Opt out globally (Settings > Gistful), per block (Display panel) or with
copy="no"on the shortcode. - Fix: GitHub occasionally serves a gist without syntax highlighting, and that copy was cached for the full TTL (and could replace the highlighted backup), so code showed without colours until the cache was cleared. Such a response (even a one-line snippet) is now treated like the API fallback: cached for at most one hour, never stored over a highlighted backup of the same code, and replaced by that backup when the post has one. Copies are compared by their code, so an edited gist always shows its current code and updates the backup.
- Plugins screen: "View on GitHub" (when the row does not already link to the repository) and "More plugins by Gioxx" links under the plugin description.
For the full version history, see CHANGELOG.md.
v0.1.0
First release of Gistful for GitHub, a modern replacement for GistPress.
- Gist embeds via a block, the
[gist]shortcode (including[gist]URL[/gist]) and pasted URLs; drop-in replacement for GistPress. - Server-side fetching with caching, per-post backups for outages and a short-lived fallback through the GitHub API.
- Local CSS with no browser requests to GitHub from the plugin's own assets (images inside Markdown gists are served by GitHub).
- Dark mode (auto, light or dark), line numbers, ranges (including open-ended ones), highlighting, multi-file gists, syntax colours for every token GitHub emits.
- Markdown and CSV render inline; notebooks, maps and 3D models get a link to GitHub.
- GistPress migration page: scan, import backups, clean up, convert block-editor embeds.
- Security hardening: strict HTML sanitizing, GitHub-only hosts, size and time limits, API token from the
GISTFUL_GITHUB_TOKENconstant only. - WP-CLI cache command and clean uninstall.
Requires WordPress 6.5+ and PHP 8.1+. Licensed GPL-3.0-or-later.
Install: download gistful-0.1.0.zip below and upload it from Plugins → Add New → Upload Plugin.