Make small tweaks to formatted representation.
This commit is contained in:
parent
005580f385
commit
6ba2deffef
1 changed files with 4 additions and 2 deletions
|
@ -59,6 +59,8 @@ export class ListBlock {
|
||||||
this.items = items;
|
this.items = items;
|
||||||
this.startOffset = startOffset;
|
this.startOffset = startOffset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get type() { return "list"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
export class RulePart {
|
export class RulePart {
|
||||||
|
@ -71,7 +73,7 @@ export class NewLinePart {
|
||||||
|
|
||||||
export class FormatPart {
|
export class FormatPart {
|
||||||
constructor(format, children) {
|
constructor(format, children) {
|
||||||
this.format = format;
|
this.format = format.toLowerCase();
|
||||||
this.children = children;
|
this.children = children;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,7 +97,7 @@ export class TextPart {
|
||||||
get type() { return "text"; }
|
get type() { return "text"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
class MessageBody {
|
export class MessageBody {
|
||||||
constructor(sourceString, parts) {
|
constructor(sourceString, parts) {
|
||||||
this.sourceString = sourceString;
|
this.sourceString = sourceString;
|
||||||
this.parts = parts;
|
this.parts = parts;
|
||||||
|
|
Reference in a new issue