Improve documentation

This commit is contained in:
Pieter Vander Vennet 2023-02-12 22:58:21 +01:00
parent c4712f6cc1
commit c610cfc6e8
3 changed files with 17 additions and 10 deletions

View file

@ -14,6 +14,9 @@ export class FixedUiElement extends BaseUIElement {
AsMarkdown(): string {
if (this.HasClass("code")) {
if (this.content.indexOf("\n") > 0 || this.HasClass("block")) {
return "\n```\n" + this.content + "\n```\n"
}
return "`" + this.content + "`"
}
if (this.HasClass("font-bold")) {