Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (23 sloc) 878 Bytes
http://www.mediawiki.org/wiki/Markup_spec/EBNF
The following is a first draft trying to describe the Wikitext-Syntax with [[w:Extended Backus–Naur Form|Extended Backus–Naur Form]] (EBNF).
Features of current parsing that must be incorporated (list is likely incomplete):
#Redirects
#Headers
#Paragraphs
#SGML (HTML, nowiki, math, plugins)
#Lists (unordered, ordered, definition, pseudo-definition)
#Initial spaces
#Bold/italics
#Templates (int:, msg:, msgnw:, raw:?)
#Template parameters (both on the sending and receiving sides)
#Horizontal rules
#[[Help:Magic words|Magic words]]
#Wikilinks (category, image, Media:)
#External links
#Plain URLs (e.g., http://blah)
#Tables
#Character entities (e.g., &, Ӓ, ሴ)
#[[Help:Magic_words#Behavior_switches|Behavior switches]]
#Date reorganization based on user prefs
#ISBNs
[[Category:Parser|EBNF]]