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

bug(renderer): source highlighter should get unadulterated string #723

Merged
merged 3 commits into from
Jul 14, 2020

Conversation

gdamore
Copy link
Collaborator

@gdamore gdamore commented Jul 13, 2020

Ths fix for this involved some refactoring of the highlighting work
to separate out the calloouts (we embed them using reserved Unicode so
that we can find them again and replace them inline).

Chroma automatically escapes the code for HTML safetly already, so
we defer to it's rules, when we use it. We still have to do this
ourselves when not using Chroma.

Fixes #721

Ths fix for this involved some refactoring of the highlighting work
to separate out the calloouts (we embed them using reserved Unicode so
that we can find them again and replace them inline).

Chroma automatically escapes the code for HTML safetly already, so
we defer to it's rules, when we use it.  We still have to do this
ourselves when not using Chroma.

Fixes bytesparadise#721
@codecov
Copy link

codecov bot commented Jul 13, 2020

Codecov Report

Merging #723 into master will increase coverage by 0.02%.
The diff coverage is 85.00%.

@@            Coverage Diff             @@
##           master     #723      +/-   ##
==========================================
+ Coverage   84.92%   84.94%   +0.02%     
==========================================
  Files          75       75              
  Lines        5120     5175      +55     
==========================================
+ Hits         4348     4396      +48     
- Misses        488      492       +4     
- Partials      284      287       +3     

@gdamore
Copy link
Collaborator Author

gdamore commented Jul 14, 2020

Any feedback on this one?

@xcoulon
Copy link
Member

xcoulon commented Jul 14, 2020

Any feedback on this one?

I plan to review it later today

@xcoulon xcoulon merged commit 8fbc228 into bytesparadise:master Jul 14, 2020
@xcoulon
Copy link
Member

xcoulon commented Jul 14, 2020

thanks @gdamore!

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.

source highlighter should get unadulterated string
2 participants