Skip to content

Commit

Permalink
Remove allowance for whitespace in noteaser tag
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed Jun 26, 2017
1 parent b633388 commit b5fb0c1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions blocks/api/post.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ WP_Block
/ WP_Block_Html

WP_Tag_More
= "<!--" WS* "more" customText:(WS+ text:$((!(WS* "-->") .)+) { return text })? WS* "-->" noTeaser:(WS* WP_Tag_NoTeaser)?
= "<!--" WS* "more" customText:(WS+ text:$((!(WS* "-->") .)+) { return text })? WS* "-->" noTeaser:(WS* "<!--noteaser-->")?
{ return {
blockName: 'wp:core/more',
attrs: {
Expand All @@ -33,9 +33,6 @@ WP_Tag_More
rawContent: ''
} }

WP_Tag_NoTeaser
= "<!--" WS* "noteaser" WS* "-->"

WP_Block_Void
= "<!--" WS+ "wp:" blockName:WP_Block_Name WS+ attrs:(a:WP_Block_Attributes WS+ { return a })? "/-->"
{ return {
Expand Down

0 comments on commit b5fb0c1

Please sign in to comment.