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

Fix escape characters for content with newline #112

Merged
merged 1 commit into from
Mar 18, 2024
Merged

Conversation

cpuguy83
Copy link
Owner

@cpuguy83 cpuguy83 commented Feb 5, 2024

Given an input like so:

'foo'
'bar'

We should be escaping both opening '.
Before this change only the first was escaped because we only look at the first character of a []byte and did not account for newlines.

Fixes #110

Given an input like so:

```markdown
'foo'
'bar'
```

We should be escaping both opening `'`.
Before this change only the first was escaped because we only look at
the first character of a `[]byte` and did not account for newlines.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@cpuguy83
Copy link
Owner Author

cpuguy83 commented Feb 5, 2024

Sorry I just force pushed the wrong thing to the branch.

@cpuguy83 cpuguy83 reopened this Feb 5, 2024
@cpuguy83
Copy link
Owner Author

cpuguy83 commented Feb 5, 2024

@kolyshkin Care to take a look at this one as well?

@cpuguy83 cpuguy83 merged commit d6816bf into master Mar 18, 2024
10 checks passed
@cpuguy83 cpuguy83 deleted the fix_newline_escape branch March 19, 2024 20:48
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

Successfully merging this pull request may close these issues.

Unescaped apostrophes at start of line
1 participant