Skip to content

fix: escape special chars in code text #145

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

Merged
merged 1 commit into from
Dec 30, 2022
Merged

Conversation

nikophil
Copy link
Collaborator

Hello there!

here is a fix for symfony/symfony-docs#17587

I had hard time understanding the problem was only occurring for code of type "text"!

cheers!

@nikophil nikophil requested a review from weaverryan December 29, 2022 10:37
@nikophil nikophil force-pushed the fix/escape-in-text-code branch from dae4c79 to 3407885 Compare December 29, 2022 10:37
@@ -117,23 +118,6 @@ public static function isLanguageSupported(string $lang): bool
return \in_array($lang, $supportedLanguages, true);
}

private function getLines(string $code): array
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was not used anywhere

Copy link
Contributor

@OskarStark OskarStark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome 😎

@javiereguiluz
Copy link
Collaborator

Very nice fix! Thanks Nicolas.

@javiereguiluz
Copy link
Collaborator

Thank you @nikophil.

@javiereguiluz javiereguiluz merged commit 8420c68 into main Dec 30, 2022
@javiereguiluz javiereguiluz deleted the fix/escape-in-text-code branch December 30, 2022 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants