Add tabbed code snippets in markdown #17381
Replies: 59 comments 8 replies
|
Hi mahozad! I found a request similar to the one you are requesting here: Add a tabs in the Markdown in profile the of GitHub #14964 and here Add markdown support for tabs #1552. I hope to help in some way. The difference from one topic to another is just the purpose. In the first topic, it would be the tabs as a menu that the user defines in the repository. In the second case, the tabs would be code guides within the repository to be used. In short, they are two requests for different purposes but with the same use case that is the guide. |
|
The widely-used syntax for this that I have seen in markdown specifically is in R Markdown. The GFM syntax should follow the R Markdown syntax. I would love to see GitHub support tabsets. |
|
Wanted to bump this as I'd love to see it implemented in GFM. Reamde.com also has an implementation that feels closer to the OG markdown spec https://docs.readme.com/rdmd/docs/code-blocks |
|
Is there any working syntax or workaround? |
|
is there any chance? |
|
I too support this, as it is part of the mkdocs Material spec: |
|
+1 to the list of interested parties on this |
|
+1 for this feature |
|
+1 This feature would be nice! |
|
+1 for this feature |
|
+1 for this feature |
|
+1 for this feature |
|
+1 for this feature |
|
+1 for this |
|
+1 |
|
+10 million, they are essential in DocFX and should be available on GitHub markdown rendering too |
|
+1 |
|
+1 |
|
+1 pls |
|
➕1️⃣ for visibility, please make this happen |
|
+1 |
|
+1 |
|
I vote yay |
|
+1 |
|
+1 |
|
+1 |
|
+1 |
|
➕1️⃣ |
|
+1 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In addition to current behavior, please add ability to show code snippets in tabs (even a single tab; see number 4 below for why).
Tabs can be useful in at least the following ways:
(for example, instead of inserting
App.js:before the snippet or// App.jsas the first line of the code)Here are many, many real-world examples in which tabbed code snippets may be helpful:
Related Stack Overflow posts
All reactions