Skip to content

Instantly share code, notes, and snippets.

@gorbiz
Last active September 12, 2023 05:50
Show Gist options
  • Star 29 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save gorbiz/6062481 to your computer and use it in GitHub Desktop.
Save gorbiz/6062481 to your computer and use it in GitHub Desktop.
Add support for bold and emphasized Markdown in Trello card titles using a User Script.
// ==UserScript==
// @name Trello card title Markdown
// @version 0.4.0
// @homepage https://gist.github.com/gorbiz/6062481
// @description Add support for bold and emphasized Markdown in card titles
// @match https://trello.com/b/*
// @match http://trello.com/b/*
// ==/UserScript==
function markdownAll() {
var cards = document.getElementsByClassName('list-card-title');
for (var i = 0; i < cards.length; i++) {
cards[i].innerHTML = cards[i].innerHTML
.replace(/\*\*(.+?)\*\*/g, '<strong>$1</strong>')
.replace(/\*(.+?)\*/g, '<em>$1</em>')
.replace(/~~(.+?)~~/g, '<strike>$1</strike>')
.replace(/\`(.+?)\`/g, '<code>$1</code>');
}
setTimeout(markdownAll, 500);
}
markdownAll();
@gorbiz
Copy link
Author

gorbiz commented Oct 1, 2019

Hi @JJ77JJ! 🙂
They denied my re-submission with "Your item did not comply with the following section of our policy [Developer Program Policies]: We may remove your item if it has a blank description field, or missing icons or screenshots, and appears to be suspicious" ...I'm guessing this makes it suspicious (the other things should be there). I asked them to clarify, so we wait...
Can't think of anything else to do right now, can you? :/
Thank you! :)

@JJ77JJ
Copy link

JJ77JJ commented Oct 1, 2019

Hi @gorbiz,
Thanks for the update and oh no! This is such a useful tool to enhance Trello. I can vouch to both Google and Trello that is not suspicious and improves the clarity of using the Trello and improves team understanding and performance. The old version is referenced across the internet as a valuable extension. If you need me to complete anything when they come back to you, let me know.

In the meantime, thank you for what you have done so far in trying to get the extension re-instated. :-)

@nicolekoh
Copy link

looking forward to the successful submission. Really needed the bold function at trello title too. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment