-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract page description after any leading headings
The `page_description` helper extracts the description from the leading paragraph of its input. Prior to this commit, a paragraph following an `<h1>` was recognized as a leading paragraph, but a paragraph following any other heading was not. This commit changes `page_description` such that it selects the `<p>` that is the first non-heading element of its input.
- Loading branch information
1 parent
6a202e1
commit 413567c
Showing
3 changed files
with
16 additions
and
2 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