Tristan Yu commited on
Commit
f452891
·
1 Parent(s): 19206be

Make source text links clickable by using renderFormatted in text-only layout

Browse files
Files changed (1) hide show
  1. client/src/pages/TutorialTasks.tsx +1 -1
client/src/pages/TutorialTasks.tsx CHANGED
@@ -1677,7 +1677,7 @@ const TutorialTasks: React.FC = () => {
1677
  ) : (
1678
  // Text only when no image
1679
  <div>
1680
- <div className="text-indigo-900 leading-relaxed text-lg font-source-text whitespace-pre-wrap">{task.content}</div>
1681
  </div>
1682
  )}
1683
  {(() => { console.log('Task imageUrl check:', task._id, task.imageUrl, !!task.imageUrl); return null; })()}
 
1677
  ) : (
1678
  // Text only when no image
1679
  <div>
1680
+ <div className="text-indigo-900 leading-relaxed text-lg font-source-text whitespace-pre-wrap">{renderFormatted(task.content)}</div>
1681
  </div>
1682
  )}
1683
  {(() => { console.log('Task imageUrl check:', task._id, task.imageUrl, !!task.imageUrl); return null; })()}