Use markdown to format questions' descriptions
This commit is contained in:
parent
5fd17156fb
commit
42b15a1546
2 changed files with 31 additions and 25 deletions
|
@ -64,8 +64,8 @@
|
|||
<h4 class="card-title" ng-if="!question.edit">{{qid + 1}}. {{ question.title }}</h4>
|
||||
<div class="card-title form-group row" ng-if="question.edit"><label for="q{{qid}}title" class="col-auto col-form-label font-weight-bold">Titre :</label><div class="col"><input id="q{{qid}}title" class="form-control" ng-model="question.title"></div></div>
|
||||
|
||||
<p class="card-text" style="white-space: pre-line" ng-bind-html="question.description" ng-if="!question.edit"></p>
|
||||
<textarea class="form-control mb-2" ng-if="question.edit" ng-model="question.description" placeholder="Description de la question"></textarea>
|
||||
<p class="card-text" ng-bind-html="question.description" ng-if="!question.edit"></p>
|
||||
<textarea class="form-control mb-2" ng-if="question.edit" ng-model="question.desc_raw" placeholder="Description de la question"></textarea>
|
||||
|
||||
<div class="form-group row" ng-if="question.edit">
|
||||
<label class="col-2 col-form-label" for="q{{qid}}kind">Type de réponse</label>
|
||||
|
|
Reference in a new issue