-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parser: Parse <!-- more --> tag and <!-- noteaser -->
These tags are officially supported by WordPress and are an exception with the concept of blocks. They contain structural data and yet they are just HTML comments without any further indication. The "more" tag supports an optional custom text string and if it is immediately followed by the "no teaser" tag then that contains additional information. In this change we parse those tags and combine them into a single "more" block with attributes of the custom text and whether or not the `noTeaser` option has been selected.
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
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