Improve event note display in dashboard and project activity views
Created by: mr-vinn
Fixes #3910
This change improves the event note display in dashboard and project activity views:
- Preserve link href values when the link text is truncated.
- Display inline code in the first line of a note.
- Only display "..." when the note contents are truncated.
- If the note starts with a code block, display the first line instead of an empty
<pre/>
element.