EDIT: these aren't headers, they are sections. See: http://meta.wikimedia.org/wiki/Help:Section
However, the UWC is translating them as headers (a good thing if I can get it to recognize title sections!)
------------------------
The converter is working (after using the UWC exporter to create the files) except for one thing, only h2 and below headers are being converted. The syntax for h2 headers looks like this:
== Header 2 ==
This gets turned into a Confluence h1 tag ... so each header is pushed down a level and h1 isn't recognized. When I convert a file with "= Header 1 =" it is rendered as straight text:
= Header 1 =
Any ideas on how to fix this?
I am clearly not a developer - I finally found where this translation is taking place. The regex was wrong and luckily I have developers that can correct these types of things. The resulting regex was:
Mediawiki.0540-re_title.java-regex=(?s)[^=]?=\s*(.*?)\s*=(?!([=])){replace-with}h1. $1
instead of
Mediawiki.0540-re_title.java-regex=(^|\n)={1}([^=]+)={1}(\n|$){replace-with}h1. $1
Works like a charm now.
I also bumped all of the headings up one so that they go to h5.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I figured out that it is translating the Mediawiki sections into headers. The syntax described above looks like headers but is actually to define sections so that you can edit a specific section (or link to).
However, I can't find anywhere in the code that actually does this translation. I can only find where the headers are translated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.