patternize / patternize.io

Algorithms and Data Structure Visualization 🔬 An interactive E-Book
https://patternize.github.io/
MIT License
41 stars 3 forks source link

How to support multiple languages in a MDX codeblock #6

Closed gazcn007 closed 4 years ago

gazcn007 commented 4 years ago

It might be worth it to consider how to support multiple languages in an MDX code block.

i.e. Leetcode supports multiple language:

image

gazcn007 commented 4 years ago

there is a solution we can use out of the box https://v2.docusaurus.io/docs/markdown-features/#interactive-code-editor