Commit graph

24 commits

Author SHA1 Message Date
Antoine Musso
d48fbb08d0 trivial double to single quotes migration 2004-06-17 09:49:28 +00:00
Gabriel Wicke
d181a35170 Made strong/em handling more forgiving against unbalanced ticks
* close any open em's or strong tags before each heading
* close any open em's or strong's at the end of the text
2004-05-14 00:18:43 +00:00
Jens Frank
f2752c7fc0 Repaired rendering of ''emph ''' bold emph '' bold ''' to produce valid HTML. 2004-05-13 19:47:09 +00:00
Jens Frank
c37ee075be Hooks for Erik Zachte's EasyTimeline extension.
Plus one one-line patch by Dori.
2004-04-26 10:20:54 +00:00
Jens Frank
b606373905 Handle French typographical rules for spaces before and after punctuation 2004-04-24 10:34:22 +00:00
Jens Frank
bbc10ff704 fixed prefixed links (for arabic wikipedia) 2004-04-21 23:52:48 +00:00
Jens Frank
f79861bbf8 handle string limits more nicely, new function 'continues' 2004-04-20 08:59:51 +00:00
Brion Vibber
fc2e8a0975 Suppress notice in some cases using '----' or partial 2004-04-20 06:26:39 +00:00
Jens Frank
8b2d83cc53 check array boundaries before accessing elements 2004-04-18 09:30:31 +00:00
Gabriel Wicke
30fa7c0779 more uninitialized string offset warnings 2004-04-12 19:38:45 +00:00
Gabriel Wicke
20cda60abe warning fixed 2004-04-12 18:53:30 +00:00
Brion Vibber
f2a8def395 Fix notice. The isset() check consistently produces a big ugly notice about an out-of-range string access (tested on PHP 4.3.2). 2004-04-10 11:25:24 +00:00
Erik Moeller
eabf8be084 fix notice 2004-04-10 10:36:42 +00:00
Erik Moeller
83912993db fix notices (jeluf, please enable E_NOTICE in your php.ini, also take a look
at the diff, please)
2004-04-10 10:24:02 +00:00
Jens Frank
f9164a40fb Rewrite of Tokenizer. Not using regex any more.
TODO: prefixed links for Arabic wikipedia not implemented yet
      handling of French blanks not yet implemented
2004-04-10 07:53:52 +00:00
Antoine Musso
92b1a41750 Fix sourceforge bug 872981
Render [[[link]]]  as  [<a href...>link</a>]
Render [[[link|text]]] as [<a href...>text</a>]

UNTESTED with $wgLang->linkPrefixExtension()  true
2004-03-16 02:17:33 +00:00
Brion Vibber
ddacf874df Fixed what seems to be an off-by-one error (it tried to access one past the end of the array quite consistently). Someone who understands this code, please check. 2004-03-08 02:46:27 +00:00
Jens Frank
92a3bdd559 Added RFC link magic, similar to ISBN magic 2004-03-06 21:30:42 +00:00
Jens Frank
7e7069ea43 Moved ISBN magic to new parser 2004-03-06 20:04:25 +00:00
Jens Frank
e5306123c1 Added hook to tokenizer and to parser for language specific
processing.

Using this hook, added a conversion of spaces to non-breaking
spaces for the French wikipedia.

Switched -----  -> <hr> processing to tokenizer.
2004-03-02 20:23:56 +00:00
Jens Frank
0449e2d7a4 extended tokenizer to handle prefixed links 2004-02-29 13:33:51 +00:00
Jens Frank
602fb22dda renamed variables for better readability 2004-02-29 11:00:30 +00:00
Tim Starling
db41d9ae7c Parser improvements: global variable destruction 2004-02-29 08:43:29 +00:00
Jens Frank
7c2a2d5846 Added real parser/tokenizer.
Tokenizer is a new class that splits a text into tokens.
Parser calls the tokenizer to get one token by another and
handle them one by one.

Parser:doAllQuotes and Parser:replaceInternalLinks have been
replaced by the new parser.

Image thumbnailing now allows links in the captions.
2004-02-28 23:38:08 +00:00