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

Add Ellison support #116

Merged
merged 3 commits into from
May 15, 2024
Merged

Conversation

assertchris
Copy link
Contributor

@assertchris assertchris marked this pull request as draft May 9, 2024 14:52
@coveralls
Copy link

coveralls commented May 9, 2024

Pull Request Test Coverage Report for Build 9033558128

Details

  • 34 of 34 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 95.388%

Totals Coverage Status
Change from base Build 9013465686: 0.1%
Covered Lines: 1489
Relevant Lines: 1561

💛 - Coveralls

@assertchris assertchris marked this pull request as ready for review May 10, 2024 14:17

return $sentence;
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

70 lines of awesome.

Copy link
Member

Choose a reason for hiding this comment

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

This is super cool!

Copy link
Member

@brendt brendt left a comment

Choose a reason for hiding this comment

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

Tis is super cool! Just a great PR without any remarks, but I didn't expect anything else from you Chris :D

Sorry for the late reply! I went down a rabbit hole in another project and wanted to solve that first before looking at my github notification again :D

@@ -41,6 +42,7 @@ public function __construct(
->addLanguage(new CssLanguage())
->addLanguage(new DiffLanguage())
->addLanguage(new DocCommentLanguage())
->addLanguage(new EllisonLanguage())
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure whether it should be added by default if the required package is opt-in. However, let's keep it like this for now, and we'll see whether it gives any problems :)


return $sentence;
}
}
Copy link
Member

Choose a reason for hiding this comment

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

This is super cool!

@brendt brendt merged commit 496f90b into tempestphp:main May 15, 2024
4 checks passed
@brendt
Copy link
Member

brendt commented May 15, 2024

@brendt
Copy link
Member

brendt commented May 15, 2024

@assertchris I made a couple of small changes. The most important one is that I removed the addition of <p> tags. I understand why you did it, but it also meant that combining ellison support with markdown codeblock rendered p tags within the pre body, which messed up styling.

Maybe we should make it configurable on the EllisonLanguage? WDYT?

@brendt
Copy link
Member

brendt commented May 15, 2024

Oh also, I added some docs about this: https://tempest.stitcher.io/highlight/04-optin

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.

3 participants