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>
This commit is contained in:
@@ -220,6 +220,15 @@
|
||||
.card__title-link {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
code {
|
||||
background-color: var(--color-canvas);
|
||||
border: 1px solid var(--color-ink-lighter);
|
||||
border-radius: 0.25ch;
|
||||
font-family: var(--font-mono);
|
||||
font-size: smaller;
|
||||
padding: 0.1ch 0.25ch;
|
||||
}
|
||||
}
|
||||
|
||||
.card__description {
|
||||
|
||||
Reference in New Issue
Block a user