From 1ca06f7731ed9a6006307ecf16796722b681dcec Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 10 May 2023 15:04:19 +0300 Subject: [PATCH] Include discord style identifier with timestamps --- formatter_tag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formatter_tag.go b/formatter_tag.go index b1744c5..ff76600 100644 --- a/formatter_tag.go +++ b/formatter_tag.go @@ -309,7 +309,7 @@ func (r *discordTagHTMLRenderer) renderDiscordMention(w util.BufWriter, source [ const fullDatetimeFormat = "2006-01-02T15:04:05.000-0700" fullRFC := ts.Format(fullDatetimeFormat) fullHumanReadable := ts.Format(discordTimestampStyle('F').Format()) - _, _ = fmt.Fprintf(w, ``, fullHumanReadable, fullRFC, formatted) + _, _ = fmt.Fprintf(w, ``, fullHumanReadable, fullRFC, node.style, formatted) } stringifiable, ok := n.(fmt.Stringer) if ok {