Skip to content

Commit d09c3c0

Browse files
committed
Mention Inline Parsing of Titles in AlertsExtension
1 parent 348d18b commit d09c3c0

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

commonmark-ext-gfm-alerts/src/main/java/org/commonmark/ext/gfm/alerts/AlertsExtension.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
* Extension for GFM alerts using {@code [!TYPE]} syntax (GitHub Flavored Markdown).
2222
* <p>
2323
* Create with {@link #create()} or {@link #builder()} and configure on builders
24-
* ({@link org.commonmark.parser.Parser.Builder#extensions(Iterable)},
25-
* {@link HtmlRenderer.Builder#extensions(Iterable)}).
26-
* Parsed alerts become {@link Alert} blocks.
24+
* ({@link Parser.Builder#extensions(Iterable)}, {@link HtmlRenderer.Builder#extensions(Iterable)}).
25+
* Parsed alerts become {@link Alert} blocks. If custom alert titles are allowed
26+
* via {@link Builder#allowCustomTitles(boolean)}, the inline formatting of those
27+
* titles will be parsed into {@link AlertTitle} nodes.
2728
*
2829
* The {@link #create() default configuration} of this extension will match GFM
2930
* exactly, with the following exceptions:
@@ -129,9 +130,11 @@ public Builder addCustomType(String type, String title) {
129130
}
130131

131132
/**
132-
* Allows or disallows custom titles on alerts. See {@link AlertTitle} for more information.
133+
* Allows or disallows custom titles on alerts. Inline formatting is supported
134+
* within these titles.
133135
* @param allow Whether to allow or disallow custom titles on alerts.
134136
* @return {@code this}
137+
* @see AlertTitle
135138
*/
136139
public Builder allowCustomTitles(boolean allow) {
137140
customTitlesAllowed = allow;

0 commit comments

Comments
 (0)