fixed markdown blockquotes not really rendering

This commit is contained in:
vabene1111 2020-02-28 22:09:16 +01:00
parent a9952b8f57
commit 45c85b9de8
2 changed files with 24 additions and 3 deletions

View File

@ -20,8 +20,29 @@
cursor: text;
transform-origin: 0% 0%;
}
blockquote {
background: #f9f9f9;
border-left: 4px solid #ccc;
margin: 1.5em 10px;
padding: .5em 10px;
quotes: none;
}
blockquote:before {
color: #ccc;
content: open-quote;
font-size: 4em;
line-height: .1em;
margin-right: .25em;
vertical-align: -.4em;
}
blockquote p {
display: inline;
}
</style>
{% endblock %}
{% block content %}

View File

@ -16,5 +16,5 @@ def get_class(value):
@register.filter()
def markdown(value):
tags = markdown_tags + ['pre', 'table', 'td', 'tr', 'th', 'tbody', 'style', 'thead']
test = md.markdown(value, extensions=['markdown.extensions.fenced_code', 'tables', MarkdownFormatExtension()])
return bleach.clean(test, tags, print_attrs, markdown_attrs)
parsed_md = md.markdown(value, extensions=['markdown.extensions.fenced_code', 'tables', MarkdownFormatExtension()])
return bleach.clean(parsed_md, tags, print_attrs, markdown_attrs)