Class H1ToTitleRule

  • All Implemented Interfaces:
    com.opensymphony.module.sitemesh.html.TagRule

    public class H1ToTitleRule
    extends com.opensymphony.module.sitemesh.html.BlockExtractingRule
    Treat 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
    • Field Summary

      • Fields inherited from class com.opensymphony.module.sitemesh.html.BasicRule

        context
    • Constructor Summary

      Constructors 
      Constructor Description
      H1ToTitleRule​(com.opensymphony.module.sitemesh.html.rules.PageBuilder page)  
    • Constructor Detail

      • H1ToTitleRule

        public H1ToTitleRule​(com.opensymphony.module.sitemesh.html.rules.PageBuilder page)
    • Method Detail

      • end

        protected void end​(com.opensymphony.module.sitemesh.html.Tag tag)
        Overrides:
        end in class com.opensymphony.module.sitemesh.html.BlockExtractingRule