Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

use makeup_syntect for highlighting JS (and diff) #457

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

SteffenDE
Copy link
Contributor

Before:

image

After:

image

@@ -34,7 +34,7 @@ defmodule PhoenixHTML.Mixfile do
[
{:ex_doc, ">= 0.0.0", only: :docs},
{:makeup_eex, ">= 0.1.1", only: :docs},
{:makeup_diff, "~> 0.1", only: :docs}
{:makeup_syntect, "~> 0.1.0", only: :docs}
Copy link
Member

Choose a reason for hiding this comment

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

I am not sure if the extra dependencies are worth it for one single snippet of JavaScript code, but it is your call :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As it's only a dependency for the docs, I really don't care. If that ever breaks, it's easy to rip out.

@SteffenDE SteffenDE merged commit 0a11e96 into main Feb 7, 2025
4 checks passed
@SteffenDE SteffenDE deleted the sd-makeup-syntect branch February 7, 2025 13:08
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants