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

Polyglot Code Highlighting #500

Merged
merged 24 commits into from
Jun 2, 2023
Merged

Polyglot Code Highlighting #500

merged 24 commits into from
Jun 2, 2023

Conversation

zampino
Copy link
Collaborator

@zampino zampino commented May 30, 2023

Add polyglot code syntax highlighting for markdown code fences that specify a language. We support all of the codemirror languages. We also enhance the code viewer by allowing to specify a language via viewer options like

(clerk/code {::clerk/opts {:language "python"}} "import os")

Follow up to #482.

CleanShot 2023-05-30 at 17 28 03@2x

@zampino zampino marked this pull request as ready for review June 1, 2023 12:39
@mk mk changed the title Polyglot Highlighting Polyglot Code Highlighting Jun 2, 2023
@mk mk merged commit 051e4f2 into main Jun 2, 2023
@mk mk deleted the polyglot-highlighting branch June 2, 2023 15:31
philippamarkovics pushed a commit that referenced this pull request Jun 20, 2023
Add polyglot code syntax highlighting for markdown code fences that specify a language. We support all of the [codemirror languages](https://github.com/codemirror/language-data).

Co-authored-by: Martin Kavalar <martin@nextjournal.com>
craig-latacora pushed a commit to latacora/clerk that referenced this pull request Aug 7, 2023
Add polyglot code syntax highlighting for markdown code fences that specify a language. We support all of the [codemirror languages](https://github.com/codemirror/language-data).

Co-authored-by: Martin Kavalar <martin@nextjournal.com>
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