You can use Code PI markers to surround drop-down links and expandable blocks with built-in DITA2Go macro code.
To delimit links and blocks with Code markers, place a Code PI marker in each of the following places, with the indicated content:
Icon |
<$DropLinkStart><$DropOpenIcon><$DropCloseIcon> |
Button |
<$DropLinkStart><$DropButton> |
Text |
<$DropLinkStart> |
(See §16.9.4.1 Specifying the type of link for drop-down sections.)
The macros for a drop-down block must be outside any drop-down content tags. Put the Code PI markers in otherwise empty paragraphs of their own, just before the first block paragraph and just after the last block paragraph. Use a dedicated paragraph format for the PI markers, and assign the following property to the format:
[HTMLStyles] CodeMarkerFmt = Raw