forked from mystiq/hydrogen-web
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.startOffset = startOffset;
|
||||
}
|
||||
|
||||
get type() { return "list"; }
|
||||
}
|
||||
|
||||
export class RulePart {
|
||||
|
@ -71,7 +73,7 @@ export class NewLinePart {
|
|||
|
||||
export class FormatPart {
|
||||
constructor(format, children) {
|
||||
this.format = format;
|
||||
this.format = format.toLowerCase();
|
||||
this.children = children;
|
||||
}
|
||||
|
||||
|
@ -95,7 +97,7 @@ export class TextPart {
|
|||
get type() { return "text"; }
|
||||
}
|
||||
|
||||
class MessageBody {
|
||||
export class MessageBody {
|
||||
constructor(sourceString, parts) {
|
||||
this.sourceString = sourceString;
|
||||
this.parts = parts;
|
||||
|
|
Loading…
Reference in a new issue