-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with task list not updating if markdown was found in the ta…
…sk description - Add a regexp to filter the tasks, making it easier to manipulate data - Add a function that retrieves task data from the card, including number of completed tasks vs total tasks - This can be used later to add a graphic indicator of the number of tasks per card - Tested with bold and other markdown markers - Update react showdown repository - Close #PM151
- Loading branch information
1 parent
8bbebb4
commit 177de29
Showing
3 changed files
with
56 additions
and
14 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
const codeRegExp = new RegExp(/`{3}[\s\S]*?`{3}/g); | ||
const backticksRegExp = new RegExp(/(?:```[a-z]*)/g); | ||
const extractTasksFromMarkdownRegExp = new RegExp(/^((?:- )?\[( |X)\] [\#\S\w\s\`\*\~]*([\w]*[\`\*\~]+[\w\S\. ]*))/m); | ||
|
||
export default { | ||
codeRegExp, | ||
extractTasksFromMarkdownRegExp, | ||
backticksRegExp, | ||
}; |