mediacloud / web-search

Code that drives the public web-based tools for the Media Cloud Online News Archive and Directory.
https://search.mediacloud.org
Apache License 2.0
10 stars 15 forks source link

Fix #795: Improve notes field rendering as Markdown #864

Closed ZiningXie closed 4 days ago

ZiningXie commented 5 days ago

Split the notes content by newline characters and wrapped each line in

tags to preserve line breaks. I created a new React component to show that instead of showing the HTML directly. For example, for one note, Before:

Screenshot 2024-11-20 at 18 00 40

After:

Screenshot 2024-11-20 at 18 01 12

Related to #795