diff --git a/publ/markdown.py b/publ/markdown.py index 65866e6b..b8bcc586 100644 --- a/publ/markdown.py +++ b/publ/markdown.py @@ -84,8 +84,8 @@ def image(self, raw_url, title='', alt=''): container_args.get('div_style')): text = '{tag}{text}'.format( tag=utils.make_tag('div', - {'class': container_args.get('div_class'), - 'style': container_args.get('div_style')}), + {'class': container_args.get('div_class') or False, + 'style': container_args.get('div_style') or False}), text=text) # if text is ''/falsy then misaka interprets this as a failed parse...