151 days ago · Tech · hide · Fediverse post

I often find myself wanting to copy images in the Bear media library in markdown format, not just the URL, since it's one of those MD options I never seem to remember. This dashboard plugin solves that by adding a handy "Copy MD" button next to the default "Copy URL". Click it and you'll get a ready-to-paste markdown image tag added to your clipboard. Native vibe and a nice little quality-of-life boost. Installation Copy the script below. Go to Customise dashboard. Paste the script under "Dashboard footer content". Save. Enjoy. Script<script> /* Plugin name: Copy markdown image tag Description: Adds a "Copy MD" button next to each media item's Copy URL button, copying a ready-to-paste ![alt](url) markdown image tag. Author: Robert Birming Author URI: https://robertbirming.com */ (function () { 'use strict'; document.addEventListener('DOMContentLoaded', function () { const items = document.querySelectorAll('.media-item'); items.forEach(function (item) { const copyUrlButton =…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town