Skip to content

Tags:Highlight: Decomposed HTMLLegacy formatter#8623

Merged
jekyllbot merged 1 commit intojekyll:masterfrom
rsampaths16:master
Aug 9, 2021
Merged

Tags:Highlight: Decomposed HTMLLegacy formatter#8623
jekyllbot merged 1 commit intojekyll:masterfrom
rsampaths16:master

Conversation

@rsampaths16
Copy link
Copy Markdown
Contributor

This is a 🔨 code refactoring.

Summary

I've decomposed HTMLLegacy formatter to appropriate sequence of formatters in the highlight tag.

Context

I was verifying approaches for #8621 and discovered that render_rouge was not open for extension. Moved away from HTMLLegacy so it becomes extensible. No change in actual functionality.

Reference:

Decomposed HTMLLegacy formatter to appropriate
 sequence of formatters.

I was verifying approaches for #8621 and discovered
 that render_rouge was not open for extension. Moved
away from HTMLLegacy so it becomes extensible.

Reference:
  * https://github.com/rouge-ruby/rouge/blob/master/lib/rouge/formatters/html_legacy.rb#L27-L37
  * #8621
@rsampaths16 rsampaths16 changed the title tags:highlight: Decomposed HTMLLegacy formatter Tags:Highlight: Decomposed HTMLLegacy formatter Mar 30, 2021
@DirtyF DirtyF requested review from a team, ashmaroli and parkr and removed request for a team April 1, 2021 17:32
@DirtyF DirtyF added the refactor label Apr 1, 2021
Copy link
Copy Markdown
Member

@ashmaroli ashmaroli left a comment

Choose a reason for hiding this comment

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

LGTM!

@DirtyF
Copy link
Copy Markdown
Member

DirtyF commented Aug 6, 2021

@jekyll merge +dev

@ashmaroli
Copy link
Copy Markdown
Member

@jekyllbot: merge +dev

@jekyllbot jekyllbot merged commit ddbc826 into jekyll:master Aug 9, 2021
jekyllbot added a commit that referenced this pull request Aug 9, 2021
github-actions bot pushed a commit that referenced this pull request Aug 9, 2021
Sampath Sukesh Ravolaparthi: Tags:Highlight: Decomposed HTMLLegacy formatter (#8623)

Merge pull request 8623
@jekyll jekyll locked and limited conversation to collaborators Aug 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants