Skip to content

Instantly share code, notes, and snippets.

@apricot13
Created August 24, 2020 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apricot13/26d7142333c78cc4bdbe2e2da00c59cd to your computer and use it in GitHub Desktop.
Save apricot13/26d7142333c78cc4bdbe2e2da00c59cd to your computer and use it in GitHub Desktop.
Copy trello board as markdown
http://www.secretgeek.net/trello_ws
```js
var s = [];
s.push("# " + jQuery(".board-header").children()[0].innerText);
jQuery(".list:has(.list-header-name)").each(function() {
s.push("\n## " + jQuery(this).find(".list-header-name-assist")[0].innerText + "\n");
jQuery(this).find(".list-card").each(function() {
var lne = "* " + jQuery(this).find(".list-card-title")[0].innerText
lne += " [link](https://trello.com" +this.getAttribute('href') + ")"
s.push(lne);
});
});
copy(s.join("\n"));
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment