From 0b29b124d60b80705bdb6e9403147eed8b659843 Mon Sep 17 00:00:00 2001 From: Raniere Silva Date: Fri, 8 May 2015 18:26:56 -0300 Subject: [PATCH] Remove classes from heading inside blockquote --- tools/filters/blockquote2div.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/filters/blockquote2div.py b/tools/filters/blockquote2div.py index 3ea39f7..6c3f352 100755 --- a/tools/filters/blockquote2div.py +++ b/tools/filters/blockquote2div.py @@ -98,11 +98,7 @@ def blockquote2div(key, value, format, meta): h_inlines.insert(0, span) # only the header goes into panel-heading - # WARNING: pandoc doesn't preserve header attributes when the - # header is nested under blockquote. This makes it - # impossible to alter header's "class" attribute, for - # example. - header = pf.Header(h_level, h_attr, h_inlines) + header = pf.Header(h_level, [h_attr[0], [], []], h_inlines) panel_header = pf.Div(("", ["panel-heading"], []), [header]) # the rest of the blockquote goes into panel-body -- GitLab