1. Bitbucket
  2. Public Issue Tracker
  3. master

Issues

Issue #7533 closed

[creole] nowiki text parsed as heading, creates TOC link (BB-8716)

Tom Roche
created an issue

I have a wiki page which includes some preformatted/nowiki text (copied from another webpage):

{{{
Agricultural waste burning (4F)
Energy manufacturing transformation (1A1+1A2)
Industrial process and product use (2)
Manure management (4B)
Oil production and refineries (1B2)
Residential (1A4)
Road transportation (1A3b)
Agricultural soils (4C+4D)
Non-road transportation (1A3a+c+d+e)
Fossil Fuel Fires (7A)
Large Scale Biomass Burning (5A+C+D+F+4E)
=> Totals
Indirect emissions from NOx and NH3 (7B+7C)
Indirect N2O emissions from agriculture (4D3)
Waste solid and wastewater (6)
}}}

Your parser renders this appropriately in the body of the page:

<pre>Agricultural waste burning (4F)
Energy manufacturing transformation (1A1+1A2)
Industrial process and product use (2)
Manure management (4B)
Oil production and refineries (1B2)
Residential (1A4)
Road transportation (1A3b)
Agricultural soils (4C+4D)
Non-road transportation (1A3a+c+d+e)
Fossil Fuel Fires (7A)
Large Scale Biomass Burning (5A+C+D+F+4E)
=&gt; Totals
Indirect emissions from NOx and NH3 (7B+7C)
Indirect N2O emissions from agriculture (4D3)
Waste solid and wastewater (6)
</pre>

However, and IMHO inappropriately, part of the nowiki text is identified as a heading and included in the file's TOC:

<div class="toc">
  <ul>
        <li><a href="#!n2o-sources-and-sinks">N<sub>2</sub>O sources and sinks</a>
    <ul>
        <li><a href="#!epa-n2o-estimates">EPA N<sub>2</sub>O estimates</a></li>
    </ul>
    </li>
    <li><a href="#!currently-available-n2o-inventories">currently available N<sub>2</sub>O inventories</a>
    <ul>
        <li><a href="#!ipcc-codes">IPCC codes</a></li>
        <li><a href="#!timesteps">timesteps</a></li>
        <li><a href="#!gridcells">gridcells</a></li>
        <li><a href="#!units">units</a></li>
        <li><a href="#!clm-cn-35-dndc-based-process-model">CLM-CN-3.5 DNDC-based process model</a></li>
        <li><a href="#!edgar-42">EDGAR-4.2</a></li>
    </ul>
    </li>
    <li><a href="#!totals">&gt; Totals</a>
    <ul>
        <li><a href="#!epic-0509">EPIC-0509</a></li>
        <li><a href="#!geia">GEIA</a></li>
        <li><a href="#!gfed-31">GFED-3.1</a></li>
    </ul>
    </li>
    <li><a href="#!my-n2o-inventory-choices">my N<sub>2</sub>O inventory choices</a>
    <ul>
        <li><a href="#!n2o-inventory-assimilation">N<sub>2</sub>O inventory assimilation</a></li>
        <li><a href="#!aqmeii_ag_soil">AQMEII_ag_soil</a></li>
        <li><a href="#!clm_cn_global_to_aqmeii-na">CLM_CN_global_to_AQMEII-NA</a></li>
        <li><a href="#!edgar-42_minus_soil_and_biomass_to_aqmeii-na">EDGAR-4.2_minus_soil_and_biomass_to_AQMEII-NA</a></li>
        <li><a href="#!geia_regrid">GEIA_regrid</a></li>
        <li><a href="#!gfed-31_global_to_aqmeii-na">GFED-3.1_global_to_AQMEII-NA</a></li>
    </ul>
    </li>
  </ul>
</div>

Please fix.

Comments (1)

  1. Log in to comment