Class MarkdownParser.PegDownHtmlParser

    • Constructor Detail

      • PegDownHtmlParser

        public PegDownHtmlParser()
    • Method Detail

      • baseEndTag

        protected boolean baseEndTag​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                     Sink sink)
        Description copied from class: XhtmlBaseParser

        Goes through a common list of possible html end tags. These should be re-usable by different xhtml-based parsers. The tags handled here are the same as for XhtmlBaseParser.baseStartTag(XmlPullParser,Sink), except for the empty elements (<br/>, <hr/>, <img/>).

        Overrides:
        baseEndTag in class XhtmlBaseParser
        Parameters:
        parser - A parser.
        sink - the sink to receive the events.
        Returns:
        True if the event has been handled by this method, false otherwise.
      • baseStartTag

        protected boolean baseStartTag​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                       Sink sink)
        Description copied from class: XhtmlBaseParser

        Goes through a common list of possible html start tags. These include only tags that can go into the body of a xhtml document and so should be re-usable by different xhtml-based parsers.

        The currently handled tags are:

        <h2>, <h3>, <h4>, <h5>, <h6>, <p>, <pre>, <ul>, <ol>, <li>, <dl>, <dt>, <dd>, <b>, <strong>, <i>, <em>, <code>, <samp>, <tt>, <a>, <table>, <tr>, <th>, <td>, <caption>, <br/>, <hr/>, <img/>.

        Overrides:
        baseStartTag in class XhtmlBaseParser
        Parameters:
        parser - A parser.
        sink - the sink to receive the events.
        Returns:
        True if the event has been handled by this method, i.e. the tag was recognized, false otherwise.