Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

Commit d760024

Browse files
committed
Add Table Prefix
1 parent 1105075 commit d760024

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/assets/javascripts/task_list.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ itemPattern = ///
118118
(?: # prefix, consisting of
119119
\s* # optional leading whitespace
120120
(?:>\s*)* # zero or more blockquotes
121-
(?:[-+*]|(?:\d+\.)) # list item indicator
121+
(?:[-+*|]|(?:\d+\.)) # list item indicator
122122
)
123123
\s* # optional whitespace prefix
124124
( # checkbox

lib/task_list/filter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Filter < HTML::Pipeline::Filter
4141
# Useful when you need iterate over all items.
4242
ItemPattern = /
4343
^
44-
(?:\s*[-+*]|(?:\d+\.))? # optional list prefix
44+
(?:\s*[-+*|]|(?:\d+\.))? # optional list prefix
4545
\s* # optional whitespace prefix
4646
( # checkbox
4747
#{CompletePattern}|

0 commit comments

Comments
 (0)