Skip to content

Fix Multiline Items

The ^ in TaskList::Filter::ItemPattern is matching the start of the second line of the list item.

The behavior was present prior to 2.3.3, but a redundant regex check on the item's text was removed that happened to have the side effect matching without newlines.

I ran a unit test for this against 3.0.alpha2 and it failed in the same way.

The fix is to use /A rather than ^ when matching inner_html.

Fixes #3 (closed).

Merge request reports

Loading