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

Highlight code in markdown files #1358

Closed
lorenzo-cavazzi opened this issue May 25, 2021 · 0 comments · Fixed by #1534
Closed

Highlight code in markdown files #1358

lorenzo-cavazzi opened this issue May 25, 2021 · 0 comments · Fixed by #1534
Assignees

Comments

@lorenzo-cavazzi
Copy link
Member

Motivation

It would be nice to highlight code properly in code-blocks embedded in markdown files.

Proposal

We use showdown to parse Markdown files and highlight.js to format code blocks in file preview.
There seem to be solutions available to enable using highlight as a plugin in showdown https://www.npmjs.com/package/showdown-highlight
We should give it a try.

Context

GitLab already supports that: https://renkulab.io/gitlab/lorenzo.cavazzi.tech/renku-api-demo
Screenshot_20210525_135327

Reference project on RenkuLab: https://renkulab.io/projects/lorenzo.cavazzi.tech/renku-api-demo
Screenshot_20210525_135340

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 a pull request may close this issue.

1 participant