tetsuo13 / MediaWiki-to-DokuWiki-Importer

Convert MediaWiki to DokuWiki
31 stars 10 forks source link

MediaWiki <pre></pre> blocks are touched #3

Closed escalate closed 12 years ago

escalate commented 12 years ago

After using the script the

 
blocks of MediaWiki are rewritten too. This should not happen.

E.g.

# Only warning, error, critical, alert, emergency messages
if $syslogseverity <= 4 then @@192.168.x.x:10514
# All messages
#_._ @@192.168.x.x:10514

#### RULES ####

Result:

  -  Only warning, error, critical, alert, emergency messages if $syslogseverity <= 4 then @@192.168.x.x:10514   -  All messages     * .* @@192.168.x.x:10514

        - RULES ####

tetsuo13 commented 12 years ago

It looks like some of the tags are missing from your example code.

escalate commented 12 years ago

I don't know the correct syntax for github. Now it looks like the plain text.

tetsuo13 commented 12 years ago

Are you saying that text inside PRE tags are also converted and they shouldn't be?

escalate commented 12 years ago

Yes, correct. The code inside the PRE tags should not be changed. But it does with the script.