Skip to content

Bold and italic formatting for notifications #373

@brki

Description

@brki

On https://grafana.com/docs/grafana/latest/alerting/configure-notifications/template-notifications/ , it says that with a notification template you can:

Format text with bold and italic styles, and add or remove line breaks.

If this is possible, please document how to do it.

Or, if it is not possible, I guess the documentation should say something like "you can not use any HTML or Markdown formatting, only plain text will be rendered".

I notice that the default template rendered for email does have some formatting.

Background: I'm trying to create an email notification, and am wondering how I can format the text. These would be nice, if available:

  • bold
  • italic
  • HTML link with title, e.g. [Link title](URL)
  • bullet point lists
  • "code" blocks, like:
foo
bar
baz

I blindly tried things like **stars for bold text** or <b>bold text with html tag</b>, to no avail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions