Hm... When I previewed this in MW 1.7.1, I got:
<p><b>bold </b><a
href="/w/index.php?title=Link&action=edit"
class="new" title="Link"><b>bold </b> not bold
<i>italics</i></a><i>
still italics</i>
Which is completely valid, and exactly what is wanted by the user.
I am not sure what the problem is...
On 9/29/06, Magnus Manske <magnusmanske(a)googlemail.com> wrote:
I've been among those writing parsers (many
half-baken ones;-) and
IMHO the only viable option, in the long run, is to make an abstract
grammar (whatever style) and have parser generators for many languages
implement them.
This would also be an improvement over the current parser, which renders
'''bold [[link|bold ''' not bold ''italics]] still
italics
as
<b>bold <a href="/mediawiki/index.php?title=Link">bold </b>
not bold
<i>italics</a> still italics</i>
which is about as broken as it gets, and only tidyhtml saves wikipedia
from serving such embarrassments.
Magnus
On 9/28/06, jeremiah johnson <naikrovek(a)gmail.com> wrote:
I think this is an awesome idea. Especially
since I spent all day
writing a parser in Java.
I work at an organization where using PHP is not allowed, so this is
my only option. I don't even know PHP well enough to port MediaWiki's
parser.
If anyone knows which PHP classes (is 'classes' an appropriate term
for PHP?) contain the parsing logic, I can port it, then open source
the parser.
If anyone is interested, please let me know. I'm writing a parser for
the small amount of markup my organization would use, but I'd be quite
happy to port the MediaWiki parser to Java at home.
jeremiah();
On 9/28/06, Gregory Szorc <gregory.szorc(a)gmail.com> wrote:
Has it ever been considered to separate the
MediaWiki markup parser from the
core MediaWiki project? It seems to me that if the parser stood on its own,
it would help wiki adoption by allowing others to use the same syntax as the
most popular wikis in the world (Wikipedia). As MediaWiki has pledged
support for Creole, it seems that eventually the wiki parsing in MediaWiki
will have to be converted to accomodate a common interface that works for
both MediaWiki and Creole, so why not use this opportunity to free out the
core parser?
Gregory Szorc
gregory.szorc(a)case.edu
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l