2 # Converts small subset of MediaWiki to DocBook
5 func open_section
(tag
) {
11 func close_section
() {
14 print "</"stack
[stack_i
]">"
24 if (block_state
!= "") {
25 print "</"block_state
">"
31 if (block_state
!= s
) {
40 open_section
("chapter")
51 open_section
("section")
52 print "<title>"$
0"</title>"
58 print "<title>"$
0"</title>"
63 gsub("\\[\\[", "<ulink url=\"")
65 gsub("]]", "</ulink>")