diff --git a/cookbook/templates/recipe_view.html b/cookbook/templates/recipe_view.html index ade2b1bd2..cbff76720 100644 --- a/cookbook/templates/recipe_view.html +++ b/cookbook/templates/recipe_view.html @@ -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; + } - + {% endblock %} {% block content %} diff --git a/cookbook/templatetags/custom_tags.py b/cookbook/templatetags/custom_tags.py index 199fcc85a..d759ec409 100644 --- a/cookbook/templatetags/custom_tags.py +++ b/cookbook/templatetags/custom_tags.py @@ -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)