Created
August 24, 2020 15:41
-
-
Save apricot13/26d7142333c78cc4bdbe2e2da00c59cd to your computer and use it in GitHub Desktop.
Copy trello board as markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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