mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Show correct programming language in level intro
This commit is contained in:
parent
f2597229b5
commit
7c9f7cbce7
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue