Adding support for ul and ol convertion.
This commit is contained in:
parent
10b05017b5
commit
32b7f8f42f
1 changed files with 21 additions and 1 deletions
|
|
@ -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'
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue