Commit dabfc7d0 authored by nanahira's avatar nanahira

disable markdown by default

parent 48b4d3cd
......@@ -83,9 +83,15 @@ export class Instance {
})
resolvedMessage: string;
@SchemaProperty({
description: '使用 markdown 语法。',
default: false,
})
markdown: boolean;
formatAlert(dto: AlertDto) {
const { alerts } = dto;
let text = `${segment('markdown')}# ${this.title}`;
let text = `${this.markdown ? segment('markdown') : ''}# ${this.title}`;
for (const alert of alerts) {
text += `\n\n## ${alert.labels.alertname}\n\n`;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment