|
28 | 28 |
|
29 | 29 | /**
|
30 | 30 | * A utility class for converting SAMM-flavored Markdown descriptions into HTML.
|
31 |
| - * <p> |
32 |
| - * This renderer supports a limited subset of Markdown syntax and introduces |
| 31 | + * |
| 32 | + * <p> This renderer supports a limited subset of Markdown syntax and introduces |
33 | 33 | * custom processing for specific annotated blocks commonly used in SAMM descriptions,
|
34 | 34 | * such as {@code > NOTE: ...}, {@code > EXAMPLE: ...}, and {@code > SOURCE: ...}.
|
35 | 35 | * These blocks are extracted and rendered into semantically meaningful HTML
|
@@ -97,11 +97,11 @@ private static String processSpecialBlocks( final String rawMarkdown ) {
|
97 | 97 |
|
98 | 98 | /**
|
99 | 99 | * Renders a list of extracted special blocks into HTML.
|
100 |
| - * <p> |
| 100 | + * |
101 | 101 | * - For {@code NOTE} and {@code SOURCE}, each entry is rendered in a {@code <div>} with a matching class.<br>
|
102 | 102 | * - For {@code EXAMPLE}, a single example is rendered as a {@code <div>}; multiple examples as a {@code <ul>}.
|
103 | 103 | *
|
104 |
| - * @param type The type of the special block (e.g., "NOTE", "EXAMPLE", "SOURCE"). |
| 104 | + * @param type The type of the special block (e.g., "NOTE", "EXAMPLE", "SOURCE"). |
105 | 105 | * @param items The list of block contents for that type.
|
106 | 106 | * @return The rendered HTML string for the block.
|
107 | 107 | */
|
@@ -139,7 +139,7 @@ private static String renderSpecialBlock( final String type, final List<String>
|
139 | 139 | * Collects all special block entries (NOTE, EXAMPLE, SOURCE) from the input lines.
|
140 | 140 | * Lines not belonging to special blocks are appended to the {@code markdownBuffer}.
|
141 | 141 | *
|
142 |
| - * @param lines Stripped lines from the raw markdown block. |
| 142 | + * @param lines Stripped lines from the raw markdown block. |
143 | 143 | * @param markdownBuffer Buffer to store non-special markdown content.
|
144 | 144 | * @return A map of special block types to their associated content.
|
145 | 145 | */
|
@@ -173,8 +173,8 @@ private static Map<String, List<String>> collectSpecialBlocks( final String[] li
|
173 | 173 | * Flushes the current block to the target map if non-empty.
|
174 | 174 | *
|
175 | 175 | * @param currentType The type of block being collected.
|
176 |
| - * @param block The current content buffer for the block. |
177 |
| - * @param target The target map of blocks. |
| 176 | + * @param block The current content buffer for the block. |
| 177 | + * @param target The target map of blocks. |
178 | 178 | */
|
179 | 179 | private static void flushBlock( final String currentType, final StringBuilder block, final Map<String, List<String>> target ) {
|
180 | 180 | if ( currentType != null && !block.isEmpty() ) {
|
|
0 commit comments