summaryrefslogtreecommitdiffabout
path: root/wiki2texi.py
Side-by-side diff
Diffstat (limited to 'wiki2texi.py') (more/less context) (ignore whitespace changes)
-rw-r--r--wiki2texi.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/wiki2texi.py b/wiki2texi.py
index 3d74f80..a7b5e92 100644
--- a/wiki2texi.py
+++ b/wiki2texi.py
@@ -132,6 +132,12 @@ class TexiWikiMarkup (WikiMarkup):
s = self.format(elt['content'])
self.nested -= 1
return "@code{%s}" % s
+ elif elt['tag'] == 'div':
+ s = ''
+ if 'args' in elt and 'id' in elt['args']:
+ s += "\n@anchor{%s}\n" % elt['args']['id']
+ s += self.format(elt['content'])
+ return s
else:
s = '<' + elt['tag']
if elt['args']:

Return to:

Send suggestions and report system problems to the System administrator.