I want a Markup() call to apply only to a given type of page, specifically if (:sop:) is included on a wiki page. &nbsp;The Markup will affect section numbering, but I still need the standard section markup to be used.<div><br>
</div><div>The following input:<div><br></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">!! Section 1<br>!!! Section 1.1<br></blockquote><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
<br></blockquote><div><div><div><div>will result in the following output:</div><div><br></div></div></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">1 &nbsp; Section 1<br>
<br>&nbsp;&nbsp; &nbsp; 1.1 &nbsp; Section 1.1</blockquote><div><div><div><div><br></div><div><br></div><div>Loading the file in which this is defined via config.php results in the section formatting being changed for all pages. &nbsp;I tried the following, and checked using ?action=ruleset whether the &#39;sop&#39; rule was being applied; &#39;sopheaders&#39; is being applied, but &#39;sop&#39; is not.</div>
<div><br></div><div><span class="Apple-style-span" style="font-family: &#39;courier new&#39;, monospace;">/*</span></div><div><span class="Apple-style-span" style="font-family: &#39;courier new&#39;, monospace;">function SOPheaders(){</span></div>
<div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-family: &#39;courier new&#39;, monospace;">        </span></span><span class="Apple-style-span" style="font-family: &#39;courier new&#39;, monospace;">Markup(&#39;sop&#39;,&#39;&gt;include&#39;,&#39;/^(!{2,4})(?:\s*)(.*)$/e&#39;, &quot;MkSopNumTitle(strlen(&#39;$1&#39;),PSS(&#39;$2&#39;))&quot;);</span></div>
<div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-family: &#39;courier new&#39;, monospace;">        </span></span><span class="Apple-style-span" style="font-family: &#39;courier new&#39;, monospace;">}</span></div>
<div><span class="Apple-style-span" style="font-family: &#39;courier new&#39;, monospace;">Markup(&#39;sopheaders&#39;,&#39;directives&#39;,&#39;/\\(:sop:\\)/e&#39;,&quot;SOPheaders()&quot;);</span></div><div><span class="Apple-style-span" style="font-family: &#39;courier new&#39;, monospace;">*/</span></div>
<br></div><div>Is this the right approach? &nbsp;Is there another approach I can try?</div><div><br></div><div>Thanks.</div><div>Scott D.</div></div></div>