diff --git a/snipts/views.py b/snipts/views.py index 93d7634..d18dc2f 100644 --- a/snipts/views.py +++ b/snipts/views.py @@ -34,8 +34,9 @@ def detail(request, username, snipt_slug): snipt = get_object_or_404(Snipt, user__username=username, slug=snipt_slug) user = snipt.user - if 'linenos' not in snipt.stylized: - snipt.save() + if snipt.lexer != 'markdown': + if 'linenos' not in snipt.stylized: + snipt.save() if user != request.user: if not snipt.public: