diff options
author | kaixiliu <liukaixi@chinamobile.com> | 2025-01-07 11:19:22 +0800 |
---|---|---|
committer | kaixiliu <liukaixi@chinamobile.com> | 2025-01-07 14:13:36 +0800 |
commit | c20b305db465c51364c8c62d61fc6c964c8000d7 (patch) | |
tree | d07902ca160cfeda3cb87054c1f3dab7c1f463b7 /usecaseui-portal/src/app/views/maas/use/use-application.component.html | |
parent | 17e3b1a42c4fff3bd0741e2bfac242c7b6eadf81 (diff) |
Display of content in markdown format
Issue-ID: USECASEUI-844
Change-Id: I5907225117e5405e6ac7bff7405fedbb497dce6e
Signed-off-by: kaixiliu <liukaixi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/maas/use/use-application.component.html')
-rw-r--r-- | usecaseui-portal/src/app/views/maas/use/use-application.component.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usecaseui-portal/src/app/views/maas/use/use-application.component.html b/usecaseui-portal/src/app/views/maas/use/use-application.component.html index f8c65794..6509fbbe 100644 --- a/usecaseui-portal/src/app/views/maas/use/use-application.component.html +++ b/usecaseui-portal/src/app/views/maas/use/use-application.component.html @@ -34,7 +34,7 @@ </div> </div> <div class="question-container"> - <span class="question-text">{{ chat.question }}</span> + <markdown class="question-text" [data]="chat.question"></markdown> </div> </div> <br> @@ -45,8 +45,11 @@ [nz-tooltip]="'maas.copy' | translate"></span> </div> <span class="answer-text"> - <span class="answer" [ngClass]="{'hidden-cursor': chat.status==='finished'}" #answerText - id="answerText">{{chat.answer}}</span> + <markdown appCodeBlock class="markdown answer-markdown" [ngClass]="{'hidden-cursor': chat.status==='finished'}" *ngIf="chat.answer else default" [data]="chat.answer"></markdown> + <ng-template #default> + <span class="answer default" [ngClass]="{'hidden-cursor': chat.status==='finished'}" #answerText> + </span> + </ng-template> </span> </div> <br> |