Talk:Wikimedia Blog/Converting wiki pages to blog posts
MediaWiki 1.18 changes 
It seems MediaWiki 1.18 has added a lot of noise to the code, even in Print version. Namely, the HTML code now includes the section edit links, even if they're hidden on the page. See the first span in the example below:
<h2><span class="editsection">[<a href="/w/index.php?title=Wikimedia_engineering_report/2011/September&action=edit&section=1" title="Edit section: Upcoming events">edit</a>]</span> <span class="mw-headline" id="Upcoming_events">Upcoming events</span></h2>
For reference, here's what the code looks like on a MediaWiki 1.17 wiki:
<h2><span class="mw-headline" id="Upcoming events">Upcoming events</span></h2>
guillom 13:51, 30 September 2011 (UTC)
- This seems to have been changed again (sensibly - at least I can't see what the purpose of these hidden links in the print version would have been): I don't see these links in the HTML for  any more.
- In any case, the first replacement rule in the script (the one containing <span class="editsection">) seems to be designed to address this, although when I tested it after your discovery, it failed for section headings that included a link (e.g. == [[Wikimedia Platform Engineering|Platform Engineering]]).
- Regards, Tbayer (WMF) 15:09, 14 October 2011 (UTC)