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
Feature: Escape chars #22
Conversation
@@ -148,6 +154,18 @@ describe("Code", () => { | |||
expect(result).toMatchSnapshot(); | |||
}); | |||
|
|||
it("inline with escape", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have a consistent convention about test names (should we start capital letter or lower case).
src/generators/table-generator.ts
Outdated
// Headers | ||
headers = headers.map(header => { | ||
if (typeof header === "string") { | ||
return header.replace(patternToEscape, resolvedOptions.escapePipeChar!); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe move to separate const to escape !
in multiple places.
Introduced escape chars in options: