fixed markdown blockquotes not really rendering
This commit is contained in:
parent
a9952b8f57
commit
45c85b9de8
@ -20,8 +20,29 @@
|
|||||||
cursor: text;
|
cursor: text;
|
||||||
transform-origin: 0% 0%;
|
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>
|
</style>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
@ -16,5 +16,5 @@ def get_class(value):
|
|||||||
@register.filter()
|
@register.filter()
|
||||||
def markdown(value):
|
def markdown(value):
|
||||||
tags = markdown_tags + ['pre', 'table', 'td', 'tr', 'th', 'tbody', 'style', 'thead']
|
tags = markdown_tags + ['pre', 'table', 'td', 'tr', 'th', 'tbody', 'style', 'thead']
|
||||||
test = md.markdown(value, extensions=['markdown.extensions.fenced_code', 'tables', MarkdownFormatExtension()])
|
parsed_md = md.markdown(value, extensions=['markdown.extensions.fenced_code', 'tables', MarkdownFormatExtension()])
|
||||||
return bleach.clean(test, tags, print_attrs, markdown_attrs)
|
return bleach.clean(parsed_md, tags, print_attrs, markdown_attrs)
|
||||||
|
Loading…
Reference in New Issue
Block a user