Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getRangeStart of td is wrong for TableParser #5

Open
AnyhowStep opened this issue May 8, 2020 · 0 comments
Open

getRangeStart of td is wrong for TableParser #5

AnyhowStep opened this issue May 8, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@AnyhowStep
Copy link
Owner

AnyhowStep commented May 8, 2020

        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

@AnyhowStep AnyhowStep added the bug Something isn't working label May 8, 2020
@AnyhowStep AnyhowStep self-assigned this May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant