Commit 7024116
fix(block-editor): render subscript and superscript marks as <sub>/<sup> in Story Block HTML output
The renderMarks macro in VM_global_library.vm handled bold, italic, strike,
underline, and link marks but silently dropped subscript and superscript marks
even though the Block Editor (TipTap) registers both extensions and authors can
produce them.
Adds the two missing branches in both the opening and closing reverse-range
loops so nested combinations (e.g. bold + superscript) close in the correct
order, plus an integration test in StoryBlockMapTest covering each mark
individually and a combined nesting case.
Closes #35460
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 855c7d5 commit 7024116
2 files changed
Lines changed: 39 additions & 0 deletions
File tree
- dotCMS/src/main/webapp/WEB-INF/velocity
- dotcms-integration/src/test/java/com/dotcms/rendering/velocity/viewtools/content
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
54 | 60 | | |
55 | 61 | | |
56 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
57 | 69 | | |
58 | 70 | | |
59 | 71 | | |
| |||
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
60 | 69 | | |
61 | 70 | | |
62 | 71 | | |
| |||
256 | 265 | | |
257 | 266 | | |
258 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
259 | 286 | | |
260 | 287 | | |
261 | 288 | | |
| |||
0 commit comments