show statement name in command line mode

This commit is contained in:
Jon Eugster
2023-04-14 13:49:07 +02:00
parent 7644740dc2
commit 545d20bb5a
4 changed files with 23 additions and 4 deletions
+8 -2
View File
@@ -188,8 +188,14 @@ function PlayableLevel({worldId, levelId}) {
}
</div>
<div className="exercise">
{/* <h4>Aufgabe:</h4> */}
<Markdown>{level?.data?.descrText}</Markdown>
<Markdown>
{(level?.data?.statementName ?
`**Theorem** \`${level?.data?.statementName}\`: `
:
level?.data?.descrText && "**Exercise**: ")
+ `${level?.data?.descrText}`
}
</Markdown>
<div className={`statement ${commandLineMode ? 'hidden' : ''}`}><code>{level?.data?.descrFormat}</code></div>
<div ref={codeviewRef} className={`codeview ${commandLineMode ? 'hidden' : ''}`}></div>
</div>
+1
View File
@@ -29,6 +29,7 @@ export interface LevelInfo {
descrText: null|string,
descrFormat: null|string,
lemmaTab: null|string,
statementName: null|string
}
interface Doc {