Closed GoogleCodeExporter closed 8 years ago
I think we want to be careful here as there are many extensions used in the
wiki dumps - wikipedia in general. My personal opinion is, the wiki syntax and
extension system is a total mess. Last time I looked into this there are many
extensions that mix template functionality with CSS overrides, with custom
HTML, and just about everything else. Some extensions even generate markup that
could be directly created by standard media wiki syntax - go figure.
I use pre-render and post-render cleanup methods to deal with any unsupported
features/extensions the bliki engine does not handle. I guess, for popular
extensions it would be nice for bliki engine to have some plugin interface.
Original comment by dfi...@itmatter.com
on 14 May 2012 at 6:16
I added an IgnoreTag which does at least append no output to the HTML buffer.
All tags which should be ignored must be added in the configuration of the
WikiModel.
static {
Configuration.DEFAULT_CONFIGURATION.addTokenTag("inputbox", new IgnoreTag("inputbox"));
Configuration.DEFAULT_CONFIGURATION.addTokenTag("imagemap", new IgnoreTag("imagemap"));
}
See r5177
Original comment by axelclk@gmail.com
on 14 May 2012 at 9:12
I agree @dfi... that we need to be careful with extensions. I wanted to avoid
pre-render or post-render cleanups as they would go through the string again
trying to match the tags.
axelclk's solution is perfect. Indeed, I wasn't aware, that supporting HTML
tags is that simple with bliki - I could probably even implement one of the
extensions now :)
Original comment by nico.kru...@googlemail.com
on 15 May 2012 at 8:14
Original comment by axelclk@gmail.com
on 3 Jun 2012 at 10:53
Original comment by axelclk@gmail.com
on 3 Jul 2012 at 5:42
Original issue reported on code.google.com by
nico.kru...@googlemail.com
on 14 May 2012 at 5:42