##### 16.9.3.2 Delimiting drop-down links and blocks with markers

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:

- At the beginning of the link paragraph before any text, with content that depends on the type of drop-down link:

  DropLinkType | Starting Code marker content
      Icon
      <$DropLinkStart><$DropOpenIcon><$DropCloseIcon>
      Button
      <$DropLinkStart><$DropButton>
      Text
      <$DropLinkStart>

  (See §16.9.4.1 Specifying the type of link for drop-down sections.)

- At the end of the link paragraph, after any text:

  <$DropLinkEnd>

- In a dedicated paragraph before the block:

  <$DropBlockStart>

- In a dedicated paragraph after the block:

  <$DropBlockEnd>

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:

    [HTMLParaStyles]
    CodeMarkerFmt = Raw

See §30.2.4 Stripping paragraph properties.

Previous Topic: 16.9.3.1 Delimiting drop-down links and blocks with paragraph formats

Next Topic: 16.9.4 Configuring drop-down links

Parent Topic: 16.9.3 Delimiting expandable drop-down sections

Sibling Topics:

16.9.3.1 Delimiting drop-down links and blocks with paragraph formats

Table of Contents • Index