Adding support for ul and ol convertion.

This commit is contained in:
Christopher Ramírez 2013-10-24 12:09:15 -06:00
parent 10b05017b5
commit 32b7f8f42f

View file

@ -1,5 +1,7 @@
#!/usr/bin/python
from random import randint
# Transform map used by the markdown filter. transform_map have
# instructions of how to transform a HTML style tag into a ODT document
# styled tag. Some ODT tags may need extra attributes; these are defined
@ -39,7 +41,7 @@ common_styles = {
}
},
'p': {
'p': {
'replace_with': 'text:p',
'style_attributes': {
'style-name': 'Standard'
@ -104,4 +106,22 @@ transform_map = {
'style-name': 'Preformatted_20_Text'
}
},
'ul': {
'replace_with': 'text:list',
'attributes': {
'xml:id': 'list' + str(randint(100000000000000000,900000000000000000))
}
},
'ol': {
'replace_with': 'text:list',
'attributes': {
'xml:id': 'list' + str(randint(100000000000000000,900000000000000000))
}
},
'li': {
'replace_with': 'text:list-item'
},
}