Skip to content

Commit 934aa7a

Browse files
dsolistorresclaude
andcommitted
test: keep MACRO copy in StoryBlockMapTest in sync with renderMarks
Add subscript and superscript handling to the inline MACRO constant so the test file reflects the real renderMarks macro in VM_global_library.vm. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7024116 commit 934aa7a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

dotcms-integration/src/test/java/com/dotcms/rendering/velocity/viewtools/content/StoryBlockMapTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ public class StoryBlockMapTest extends IntegrationTestBase {
8888
" #if ($mark.type == \"underline\")\n" +
8989
" <u>\n" +
9090
" #end\n" +
91+
" #if ($mark.type == \"subscript\")\n" +
92+
" <sub>\n" +
93+
" #end\n" +
94+
" #if ($mark.type == \"superscript\")\n" +
95+
" <sup>\n" +
96+
" #end\n" +
9197
" #if ($mark.type == \"link\")\n" +
9298
" <a href=\"$mark.attrs.href\" target=\"$mark.attrs.target\">\n" +
9399
" #end\n" +
@@ -112,6 +118,12 @@ public class StoryBlockMapTest extends IntegrationTestBase {
112118
" #if ($mark.type == \"underline\")\n" +
113119
" </u>\n" +
114120
" #end\n" +
121+
" #if ($mark.type == \"subscript\")\n" +
122+
" </sub>\n" +
123+
" #end\n" +
124+
" #if ($mark.type == \"superscript\")\n" +
125+
" </sup>\n" +
126+
" #end\n" +
115127
" #if($mark.type == \"link\")\n" +
116128
" </a>\n" +
117129
" #end\n" +

0 commit comments

Comments
 (0)