File tree Expand file tree Collapse file tree
commonmark-ext-gfm-alerts/src/main/java/org/commonmark/ext/gfm/alerts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ;
You can’t perform that action at this time.
0 commit comments