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

Move code escaping to html() #3531

Merged
merged 1 commit into from
Feb 11, 2022
Merged

Move code escaping to html() #3531

merged 1 commit into from
Feb 11, 2022

Conversation

luin
Copy link
Member

@luin luin commented Feb 11, 2022

The code() method should be rendering target agnostic so this PR moves the encode logic to html(). It breaks BC for code() but it was introduced in 2.0 and we don't have it documented or decided to make it as a public API yet so should be fine.

@luin luin marked this pull request as ready for review February 11, 2022 05:52
@jhchen jhchen merged commit 885f1a2 into develop Feb 11, 2022
@jhchen jhchen deleted the zh-no-escape-code branch February 11, 2022 19:13
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.

2 participants