Package org.sonar.markdown
Class HtmlHeadingChannel
java.lang.Object
org.sonar.channel.Channel<O>
org.sonar.channel.RegexChannel<org.sonar.markdown.MarkdownOutput>
org.sonar.markdown.HtmlHeadingChannel
public class HtmlHeadingChannel
extends org.sonar.channel.RegexChannel<org.sonar.markdown.MarkdownOutput>
Headings are triggered by equal signs at the beginning of a line. The depth of the heading is determined by the number
of equal signs (up to 6).
E.g., the input:
= Level 1 == Level 2 === Level 3 ==== Level 4 ===== Level 5 ====== Level 6will produce:
<h1>Level 1</h1> <h2>Level 2</h2> <h3>Level 3</h3> <h4>Level 4</h4> <h5>Level 5</h5> <h6>Level 6</h6>
- Since:
- 4.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconsume(CharSequence token, org.sonar.markdown.MarkdownOutput output) Methods inherited from class org.sonar.channel.RegexChannel
consume
-
Constructor Details
-
HtmlHeadingChannel
public HtmlHeadingChannel()
-
-
Method Details
-
consume
- Specified by:
consumein classorg.sonar.channel.RegexChannel<org.sonar.markdown.MarkdownOutput>
-