xamde / wikimodel

Automatically exported from code.google.com/p/wikimodel
1 stars 0 forks source link

Enhanced support of macros for MediaWiki parser #191

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, MediaWiki parser only supports blocked macros.
The parser doesn't handle inlined macros.

This enhancement introduces a new MacroParser interface and a default
implementation for it. This is similar to the existing ReferenceParser stuff.
Additionally, the parser is extended to also support macros within a line.
Of course, some JUnit tests will prove the correctness ;-)

Original issue reported on code.google.com by mki...@portolancs.com on 23 Aug 2010 at 8:29

GoogleCodeExporter commented 9 years ago
Because of the similarity of magic words and macros/templates within MediaWiki,
this patch will introduce some little changes to the current behavior of parsing
macros:
 * There are 4 'built in' macros: toc, notoc, forcetoc, footnotes
 * The macro parsing implementation was moved of from MediaWikiParser into separate MediawikiWikiMacro.java file
 * Similar to the WikiReference interface, a new WikiMacro interface is introduced

Thus current handler for macros should be revisited.

Original comment by mki...@portolancs.com on 23 Aug 2010 at 9:07

GoogleCodeExporter commented 9 years ago
Fixed, see revision 483.

Original comment by mki...@portolancs.com on 23 Aug 2010 at 9:26

GoogleCodeExporter commented 9 years ago

Original comment by mki...@portolancs.com on 23 Aug 2010 at 9:26