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

If there are multiple "|" symbols in the table cell, the table conversion will fail. #103

Open
shuiyyyy opened this issue Oct 25, 2024 · 0 comments

Comments

@shuiyyyy
Copy link

Example:

{ table: { headers: ['a', 'b'], rows: [{ a: 'col1|abc|def', b: 'col2' }] } }

Results:

|  a  |  b  |
| --- | --- |
| col1\|abc|def | col2 |

The regular expression is missing a "g", it should be cell.replace(/([^\\])\|/g, "$1\\|"))?
This line is bug?

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