on master help sign in
search: inject code blocks into descriptions
commitbcf55eb892eb58030f74420d0973494aca045915 authorMatilde Park <matilde.park@urbit.org> dateSun 1 May 2022, 10:16 (4 years ago) parent7b452a6
1 file changed+4−3
components/Search.js+4−3
components/Search.js+4−3
@@ -206,9 +206,10 @@ class Search extends Component {
206206 className={`font-normal text-base mt-1 ${
207207 selected ? "text-white" : "text-wall-600"
208208 }`}
209− >
210− {item.content.desc}
211− </p>
209+ dangerouslySetInnerHTML={{
210+ __html: item.content.desc,
211+ }}
212+ ></p>
212213 </div>
213214 </li>
214215 );