From f65d124bb374454f99fc3acf9bb50a64dcb252a7 Mon Sep 17 00:00:00 2001
From: Lukas Haase <lukas.haase@mni.thm.de>
Date: Thu, 2 Jul 2020 16:06:13 +0200
Subject: [PATCH] add markdown for question focus

---
 .../questionwall/question-wall/question-wall.component.html   | 4 +++-
 .../questionwall/question-wall/question-wall.component.scss   | 4 ++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/app/components/shared/questionwall/question-wall/question-wall.component.html b/src/app/components/shared/questionwall/question-wall/question-wall.component.html
index 2313b826c..baea087e9 100644
--- a/src/app/components/shared/questionwall/question-wall/question-wall.component.html
+++ b/src/app/components/shared/questionwall/question-wall/question-wall.component.html
@@ -51,7 +51,9 @@
               <h2 class="questionwall-present-meta-timestamp">{{commentFocus.timeAgo}}</h2>
             </ars-row>
             <ars-row>
-              <p class="questionwall-present">{{commentFocus.comment.body}}</p>
+              <ars-row class="bound" style="padding:16px 32px 16px 32px;">
+                <markdown [data]="commentFocus.comment.body"></markdown>
+              </ars-row>
             </ars-row>
           </ng-container>
           <ng-container *ngIf="!commentFocus">
diff --git a/src/app/components/shared/questionwall/question-wall/question-wall.component.scss b/src/app/components/shared/questionwall/question-wall/question-wall.component.scss
index 864b6ca85..5bece8d8b 100644
--- a/src/app/components/shared/questionwall/question-wall/question-wall.component.scss
+++ b/src/app/components/shared/questionwall/question-wall/question-wall.component.scss
@@ -170,4 +170,8 @@
     }
   }
 
+  .bound img{
+    max-width:100%;
+  }
+
 }
-- 
GitLab