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

Allow code snippets in multiple programming language #124

Closed
mvysny opened this issue Jun 8, 2020 · 2 comments
Closed

Allow code snippets in multiple programming language #124

mvysny opened this issue Jun 8, 2020 · 2 comments

Comments

@mvysny
Copy link

mvysny commented Jun 8, 2020

Hello, building on github/markup#435 , would it be possible to add support for having example code snippets in multiple programming languages, similar to https://yassir.dev/markdown-fenced-code-tabs/ please?

Thank you kindly :)

@gjtorikian
Copy link
Owner

Hi there, thank you for opening an issue. Since this would be an addition to the formal Commonmark spec, I suggest opening it over where the development of that spec occurs: https://github.com/github/cmark-gfm

The intent of this repository is to just prove a single Ruby wrapper for the existing C code. It does not add any features that do not already exist in github/cmark-gfm.

Alternative, you are free to create your own custom renderer as a plugin/add-on: https://github.com/gjtorikian/commonmarker#creating-a-custom-renderer. For example, you can see how commonmarker-rouge added syntax highlighting to code blocks on top of this gem.

@mvysny
Copy link
Author

mvysny commented Jun 8, 2020

Thank you for letting me know and for the pointers, I created the feature request as you suggested. Thanks again 👍

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

No branches or pull requests

2 participants