diff --git a/tools/server/public_simplechat/typemd.mjs b/tools/server/public_simplechat/typemd.mjs index 40a2a2b359..ed57b64d18 100644 --- a/tools/server/public_simplechat/typemd.mjs +++ b/tools/server/public_simplechat/typemd.mjs @@ -22,8 +22,10 @@ export class MarkDown { columns: 0, rawRow: 0, }, - /** @type {Array} */ - listUnordered: [] + list: { + /** @type {Array} */ + offsets: [], + } } /** * @type {Array<*>} @@ -34,10 +36,10 @@ export class MarkDown { } unwind_list_unordered() { - for(const i in this.in.listUnordered) { + for(const i in this.in.list.offsets) { this.html += "\n" } - this.in.listUnordered.length = 0 + this.in.list.offsets.length = 0 } unwind_list() { @@ -54,25 +56,25 @@ export class MarkDown { if (matchUnOrdered != null) { let sList = 'none' let listLvl = 0 - if (this.in.listUnordered.length == 0) { + if (this.in.list.offsets.length == 0) { sList = 'same' - this.in.listUnordered.push(matchUnOrdered[1].length) - listLvl = this.in.listUnordered.length // ie 1 + this.in.list.offsets.push(matchUnOrdered[1].length) + listLvl = this.in.list.offsets.length // ie 1 this.html += "