The proper way to do this is to do what Lisa suggested: use the "Make Paragraph Item" option when you right-click on the LI block in the XML editor:
I've discussed this before, but it's worth discussing again.
You're working in XML, and your content is semantically related, so the structure should reflect that semantic relation.
What you are describing is a list item that has several child paragraphs which may or may not include images, etc. The following is an INCORRECT semantic structure:
Code: Select all
<ol>
<li>First step is to do x.</li>
</ol>
<p>You should be aware of blah blah.</p>
<img>
<p class"Note">NOTE: Don't forget to do blah blah!</p>
<ol>
<li>Next you should do Y.</li>
</ol>
This is what you are asking the code to do when you don't properly nest the related semantic elements. From the code, you can't tell that the paragraphs between the first and second step are related to the text in the first step. In fact, you can't tell, from the code, that the two steps are part of the same list.
The proper way to address this, is to properly nest your elements, like this>
Code: Select all
<ol>
<li>
<p>First step is to do x.</p>
<p>You should be aware of blah blah.</p>
<img>
<p class"Note">NOTE: Don't forget to do blah blah!</p>
</li>
<li>Next you should do Y.</li>
</ol>
Now it is clear, from a structural point of view, how the content in this XML file is related. There are clear parent/child relationships, and all the content in the first <li> are grouped together (so they can be moved together etc.).
MadCap does provide a way to restart your list, but all it is allowing you to do is maintain broken underlying XML. It's a stop-gap measure, but the resulting source code is messy and not semantically structured, which really is incorrect.
You achieve this proper structure by using the "Make Paragraph Item" option shown above.
Now, one thing you should be aware of: since you are using <p> elements as a child in your <li> element, you're going to get the <p> style from the style sheet, in addition to the <li> style. If you have positioning or padding or margin added to both of these elements, they will be added together for the <p> elements that are children of <li> elements. You can fix this by creating a complex selector in your stylesheet like this:
This style will be applied only for <p> elements that are direct children of <li> elements, so you can ensure your spacing works like you want.