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

Table borders always overwrite style. #1497

Open
IsardMWR opened this issue Apr 28, 2022 · 1 comment
Open

Table borders always overwrite style. #1497

IsardMWR opened this issue Apr 28, 2022 · 1 comment

Comments

@IsardMWR
Copy link

I am attempting to use external styles for a table but the borders are being overwritten by the borders set in the table constructor. Perhaps it would be possible to add some option to explicitly disable borders for tables?

Currently I am manually removing the borders property to get around the issue.

table.root.map((a) => {
      if (a.rootKey === 'w:tblPr') a.root = a.root.filter((p) => p.rootKey !== 'w:tblBorders');
      return a;
    });
@IsardMWR
Copy link
Author

Also, unrelated, but thanks very much for this library, it is quite useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant