You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The media wiki syntax has a pseudo (invalid) <ref/> tag construct to
encapsulate inline sections of the markup content to build internal
reference links. Those constructs are not parsed by the parser as the
following test shows:
Index: src/test/java/org/wikimodel/wem/test/MediawikiParserTest.java
===================================================================
--- src/test/java/org/wikimodel/wem/test/MediawikiParserTest.java
(revision 436)
+++ src/test/java/org/wikimodel/wem/test/MediawikiParserTest.java
(working copy)
@@ -249,6 +249,8 @@
test("before [#local ancor] after");
test("not [[a reference] at all!");
+
+ test("<ref name=definitions>test wikimedia reference</ref>");
}
/**
That outputs:
==================================================
<div class='wikimodel-document'>
<p><ref name=definitions>test wikimedia reference</p>
</div>
E.g. it does not seem to be handled at all.
FYI, ref tags can have formatted content such as the following excert
fromt the Anarchism article of the english wikipedia:
<ref name=definitions>*[[Errico Malatesta]],
\"[http://www.marxists.org/archive/malatesta/1930s/xx/toanarchy.htm
Towards Anarchism]\", ''MAN!''. [[Los Angeles]]: International Group
of San Francisco. {{OCLC|3930443}}. *{{cite journal
|url=http://www.theglobeandmail.com/servlet/story/RTGAM.20070514.wxlanarchis
t14/BNStory/lifeWork/home/
|title=Working for The Man |journal=[[The Globe and Mail]]
|accessdate=2008-04-14 |last=Agrell |first=Siri |date=2007-05-14}}
*\"[http://www.britannica.com/eb/article-9117285 Anarchism].\"
''Encyclopædia Britannica''. 2006. Encyclopædia Britannica Premium
Service. 29 August 2006 *\"Anarchism.\" ''The Shorter [[Routledge
Encyclopedia of Philosophy]]''. 2005. p. 14 \"Anarchism is the view
that a society without the state, or government, is both possible and
desirable.\"</ref>
Original issue reported on code.google.com by [email protected] on 7 Jan 2010 at 6:02
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 7 Jan 2010 at 6:02The text was updated successfully, but these errors were encountered: