X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/6cb9b167cf80a8cf38af5b704759bbe4edfcf0f8..5d33b325a606240f9bcc7d704de1af0152c9bd19:/forum/views/meta.py?ds=sidebyside diff --git a/forum/views/meta.py b/forum/views/meta.py index 63ff657..be41bd2 100644 --- a/forum/views/meta.py +++ b/forum/views/meta.py @@ -12,6 +12,8 @@ from forum.models import Badge, Award, User from forum.badges import ALL_BADGES from forum import settings from forum.utils.mail import send_email +from forum.settings.settingsmarkdown import * + import re def favicon(request): @@ -21,7 +23,10 @@ def about(request): return render_to_response('about.html', {'text': settings.ABOUT_PAGE_TEXT.value }, context_instance=RequestContext(request)) def faq(request): - return render_to_response('faq.html', {'text': settings.FAQ_PAGE_TEXT.value }, context_instance=RequestContext(request)) + md = markdown.Markdown([SettingsExtension({})]) + text = md.convert(settings.FAQ_PAGE_TEXT.value) + + return render_to_response('faq.html', {'text' : text}, context_instance=RequestContext(request)) def feedback(request): if request.method == "POST":