diff --git a/markdown_map.py b/markdown_map.py index 5e480e9..77b4d24 100644 --- a/markdown_map.py +++ b/markdown_map.py @@ -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' + }, } \ No newline at end of file