Files
fizzy/app/views/cards/container/_content_display.html.erb
T
Mike Dalessio 851f13a934 Render inline code in card titles (#2518)
* Remove unused marked JS dependency

* Remove unused redcarpet dependency

* Render inline code in card titles

Add card_html_title helper that HTML-escapes input then converts
backtick-wrapped text to <code> elements. Apply to card titles in
board preview, card detail, public views, and notification emails.
Style inline code elements in titles to match description styling.

Co-authored-by: Andy Smith <andy@37signals.com>

---------

Co-authored-by: Andy Smith <andy@37signals.com>
2026-02-12 12:07:40 -05:00

10 lines
328 B
Plaintext

<h1 class="card__title flex align-start gap-half">
<%= link_to card_html_title(card), edit_card_path(card), class: "card__title-link" %>
</h1>
<% unless card.description.blank? %>
<div class="card__description lexxy-content" data-controller="syntax-highlight retarget-links">
<%= card.description %>
</div>
<% end %>