Replies: 25 comments 5 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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Is there any working syntax or workaround? |
Beta Was this translation helpful? Give feedback.
-
is there any chance? |
Beta Was this translation helpful? Give feedback.
-
I too support this, as it is part of the mkdocs Material spec: |
Beta Was this translation helpful? Give feedback.
-
+1 to the list of interested parties on this |
Beta Was this translation helpful? Give feedback.
-
+1 for this feature |
Beta Was this translation helpful? Give feedback.
-
+1 This feature would be nice! |
Beta Was this translation helpful? Give feedback.
-
+1 for this feature |
Beta Was this translation helpful? Give feedback.
-
+1 for this feature |
Beta Was this translation helpful? Give feedback.
-
+1 for this feature |
Beta Was this translation helpful? Give feedback.
-
+1 for this feature |
Beta Was this translation helpful? Give feedback.
-
Looks a lot like github/markup#1552 |
Beta Was this translation helpful? Give feedback.
-
+1 for this |
Beta Was this translation helpful? Give feedback.
-
++ this would be amazing |
Beta Was this translation helpful? Give feedback.
-
For what's it's worth (and I realize this is not exactly a direct solution to your request), but if you want to implement this feature in your own docs / GitHub Pages,
|
Beta Was this translation helpful? Give feedback.
-
This is one more "me too" comments... |
Beta Was this translation helpful? Give feedback.
-
+1 This would be awesome! |
Beta Was this translation helpful? Give feedback.
-
May 27, 2022 @github what are you doing there? |
Beta Was this translation helpful? Give feedback.
-
This seems like its in the perfect space of not hard and super useful. I would use it immediately to make a number of readmes more readable. |
Beta Was this translation helpful? Give feedback.
-
+1 - really should not have to request this... Disappointed along with all my fellow developers, but here's an ugly You might be able to get by with the currently-available
Which would produce: NodeJS example*some NodeJS code here...*RoR example*some Ruby on Rails code here...* |
Beta Was this translation helpful? Give feedback.
-
+1 Wanted this feature to descibe OS specific install instructions |
Beta Was this translation helpful? Give feedback.
-
It would be great if there was a feature to be able to add code snippets with multiple tabs (or even a single tab).
This can be useful in many situations. For example, when there is variations of the same code for multiple languages or for code snippets that usually accompany each other (like HTML, CSS, JS).
Even for a regular code snippet, being able to show the tab can be useful. The tab name will indicate the file name or the language/syntax of the code (so there will be no need to insert, for example,
App.js:
before the snippet or// App.js
as the first line of the code snippet).One other benefit is that it compacts the documentations and makes it smaller vertically.
There are many, many examples in which tabbed code snippets may be helpful like:
Real-world example 1
Gradle build tool (used in Java, Kotlin, Android, etc.) has two syntax for its build files. Many libraries need to provide both of those syntaxes in their README file on GitHub. Here is an example from Gradle site itself:
Real-world example 2
Java and Kotlin are two languages which are mostly interoperable (they can be mixed in a single project with no effort). Platforms like Android and big libraries like Spring provide their code examples in these two languages. Similarly, there are many Java/Kotlin libraries that provide usage for both of these languages in their markdown docs. Here are Spring and Android websites:
Real-world example 3
HTML, CSS, and JavaScript are a triple that may come together a lot in documentations. So, this would be another use case for this feature.
Related Stack Overflow posts
Beta Was this translation helpful? Give feedback.
All reactions