Skip to content

getRangeStart of td is wrong for TableParser #5

@AnyhowStep

Description

@AnyhowStep
        node.tbody.appendChild(tr);
        for (let j=0; j<row.length; ++j) {
            const a = node.alignments[j];
            const c = row[j];
            const td = this.args.tdParser.instantiate(parser.getRangeStart(0));
            td.alignment = a;
            td.stringContent = c;
            //parser.processInlines(td);
            tr.appendChild(td);
        }

The problem here is that all td elements have the same range, when they actually start at different ranges.

Figuring out the exact start will probably be a huge pain

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions