Class H1ToTitleRule
- java.lang.Object
-
- com.opensymphony.module.sitemesh.html.BasicRule
-
- com.opensymphony.module.sitemesh.html.BlockExtractingRule
-
- org.codehaus.xsite.extractors.sitemesh.rules.H1ToTitleRule
-
- All Implemented Interfaces:
com.opensymphony.module.sitemesh.html.TagRule
public class H1ToTitleRule extends com.opensymphony.module.sitemesh.html.BlockExtractingRuleTreat the content of the first H1 tag as page title and drop the element instead. Rule is interesting for pages generated with plain Markdown, since it is not possible to define a title. Skins can reuse the title to generate an own H1 element at a prominent place if required.- Author:
- Jörg Schaible
-
-
Constructor Summary
Constructors Constructor Description H1ToTitleRule(com.opensymphony.module.sitemesh.html.rules.PageBuilder page)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidend(com.opensymphony.module.sitemesh.html.Tag tag)-
Methods inherited from class com.opensymphony.module.sitemesh.html.BlockExtractingRule
createBuffer, process, start
-
-