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

Breaks table columns #94

Open
mrtronje opened this issue Jan 13, 2022 · 2 comments
Open

Breaks table columns #94

mrtronje opened this issue Jan 13, 2022 · 2 comments

Comments

@mrtronje
Copy link

Hi
The highlighter doesn't work across table columns, see

image

@mortenpless
Copy link

Upvote this issue!

@zcf0508
Copy link

zcf0508 commented Jul 26, 2023

可以试试这样处理

highlighter.hooks.Render.SelectedNodes.tap((id, nodes) =>{
  const filteredNodes =  nodes.filter(node => {
    if(node.type == 'text' && node.$node.data.trim() == '') {
      return false;
    }
    return true;
  });
  return filteredNodes;
});

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

3 participants