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

Merge pull request #234 from r-gaia-cs/core-semantic

Replace div with section and aside
parents c70bebd3 63fb8f22
Branches
Tags
No related merge requests found
......@@ -113,7 +113,16 @@ def blockquote2div(key, value, format, meta):
# a blockquote is just a list of blocks, so it can be
# passed directly to Div, which expects Div(attr, blocks)
return pf.Div((id, classes, kvs), [panel_header, panel_body])
if classes[0] == "callout":
return [{"t": "RawBlock", "c": [ "html", "<aside class=\"{0}\">".format(' '.join(classes)) ]},
panel_header,
panel_body,
{"t": "RawBlock", "c": [ "html", "</aside>" ]}]
else:
return [{"t": "RawBlock", "c": [ "html", "<section class=\"{0}\">".format(' '.join(classes)) ]},
panel_header,
panel_body,
{"t": "RawBlock", "c": [ "html", "</section>" ]}]
if __name__ == '__main__':
......
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