Show correct programming language in level intro

This commit is contained in:
Matt Lott 2016-08-22 06:11:01 -07:00
parent f2597229b5
commit 7c9f7cbce7

View file

@ -184,7 +184,8 @@ module.exports = class LevelLoadingView extends CocoView
#{problem.category} - #{problem.score} points
""", sanitize: false
else
html = marked utils.filterMarkdownCodeLanguages(utils.i18n(@intro, 'body'))
language = @session?.get('codeLanguage')
html = marked utils.filterMarkdownCodeLanguages(utils.i18n(@intro, 'body'), language)
@$el.find('.intro-doc').removeClass('hidden').find('.intro-doc-content').html html
@resize()