Skip to content
Snippets Groups Projects
Commit 8bdee9ba authored by Raniere Silva's avatar Raniere Silva
Browse files

Merge pull request #93 from aaren/fix-blockquote-header-attributes

Fix blockquote header attributes
parents 49097cab e6375068
Branches
Tags
No related merge requests found
...@@ -104,12 +104,11 @@ def blockquote2div(key, value, format, meta): ...@@ -104,12 +104,11 @@ def blockquote2div(key, value, format, meta):
id, classes, kvs = attr id, classes, kvs = attr
ltitle = pf.stringify(inlines).lower() lowercase_title = pf.stringify(inlines).lower()
if ltitle in SPECIAL_TITLES: if lowercase_title in SPECIAL_TITLES:
classes.append(SPECIAL_TITLES[ltitle]) classes.append(SPECIAL_TITLES[lowercase_title])
return pf.Div(attr, blockquote)
elif len(classes) == 1 and classes[0] in SPECIAL_CLASSES: if len(classes) == 1 and classes[0] in SPECIAL_CLASSES:
remove_attributes(blockquote) remove_attributes(blockquote)
# a blockquote is just a list of blocks, so it can be # a blockquote is just a list of blocks, so it can be
# passed directly to Div, which expects Div(attr, blocks) # passed directly to Div, which expects Div(attr, blocks)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment