Commit 2fe9c092 authored by nanahira's avatar nanahira

better markdown format

parent 9ca86a84
......@@ -33,7 +33,7 @@ export class InstanceConfig {
formatAlert(dto: AlertDto) {
const { alerts } = dto;
let text = `${this.markdown ? segment('markdown') : ''}# ${this.title}`;
let text = `# ${this.title}`;
for (const alert of alerts) {
const resolved = alert.status === 'resolved';
......@@ -51,6 +51,9 @@ export class InstanceConfig {
}
text += `${alert.annotations.description}`;
}
if (this.markdown) {
text = segment('markdown', text).toString();
}
return text;
}
......
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