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

Feature: Escape chars #22

Merged
merged 8 commits into from Jan 19, 2018
Merged

Feature: Escape chars #22

merged 8 commits into from Jan 19, 2018

Conversation

MartynasZilinskas
Copy link
Collaborator

@MartynasZilinskas MartynasZilinskas commented Jan 8, 2018

Introduced escape chars in options:

  • Blockquote
  • InlineCode and Code
  • Table

@@ -148,6 +154,18 @@ describe("Code", () => {
expect(result).toMatchSnapshot();
});

it("inline with escape", () => {
Copy link
Member

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).

// Headers
headers = headers.map(header => {
if (typeof header === "string") {
return header.replace(patternToEscape, resolvedOptions.escapePipeChar!);
Copy link
Member

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.

@MartynasZilinskas MartynasZilinskas merged commit ee507d4 into dev Jan 19, 2018
@MartynasZilinskas MartynasZilinskas deleted the feature/escape-chars branch January 19, 2018 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants