(bug 21477) Add \& to texvc
authorConrad Irwin <conrad@users.mediawiki.org>
Mon, 21 Jun 2010 22:09:05 +0000 (22:09 +0000)
committerConrad Irwin <conrad@users.mediawiki.org>
Mon, 21 Jun 2010 22:09:05 +0000 (22:09 +0000)
RELEASE-NOTES
math/lexer.mll

index 79db694..758d7e3 100644 (file)
@@ -87,6 +87,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 4597) Provide support in Special:Contributions to show only "current"
   contributions
 * (bug 17857) {{anchorencode}} acts more like how the parser creates section ids.
+* (bug 21477) \& can now be used in <math>
 
 === Bug fixes in 1.17 ===
 * (bug 17560) Half-broken deletion moved image files to deletion archive
index 4dd31e0..1702084 100644 (file)
@@ -69,6 +69,7 @@ rule token = parse
   | "\\#"                      { LITERAL (HTMLABLE (FONT_UFH,"\\#","#")) }
   | "\\%"                      { LITERAL (HTMLABLE (FONT_UFH,"\\%","%")) }
   | "\\$"                      { LITERAL (HTMLABLE (FONT_UFH,"\\$","$")) }
+  | "\\&"                      { LITERAL (HTMLABLEC (FONT_RM,"\\&","&amp;")) }
   | "&"                                { NEXT_CELL }
   | "\\\\"                     { NEXT_ROW }
   | "\\begin{matrix}"          { Texutil.tex_use_ams(); BEGIN__MATRIX }