<p><span class="titre-listitem">Ma jolie liste</span></p>
<ul>
<li><span class="wikilink"><a href="xxxxxx">Page type de doc avec un sommaire</a></span>/li>
...
<li><span class="wikilink"><a href="/bin/view/BacASable/TestPage3">Page de Test 3</a></span></li>
</ul>
Ma 2eme liste
<ul>
<li><span class="wikilink"><a href="xxxxx">bla bla</a></span></li>
<li><span class="wikilink"><a href="xxxxx"><span class="wikigeneratedlinkcontent">Tableau filtré</span></a></span></li>
</ul>
<p></p>
But that example is perfectly normal! Textual content and span are inline elements that have to be inside a standalone elemenent (and thus a paragraph) in HTML
I thought you said you had an empty paragraph, which is not the case apparently.
(% class="titre-listitem" %)Sandbox(%%) is perfectly valid and won’t generate any error. If you get one it must be because your example is more complex. Try putting this is a in wiki page by itself. You shouldn’t get any error.
TBH I’m not entirely sure why Velocity is having a problem with your example but it’s using the short hand notation and use the formal notation fixes the problem.
Be careful that $MyDoc.getContent() will just insert the content as is. So if you have relative links/images/etc it won’t work. you’ll need the display macro for that.