Comments (7)
Hi @gotjoshua.
Per the Features/Limitations section of the docs:
Limitations
- Nested tabsets (i.e. tabs within tabs) are not supported.
Nested tabsets are challenging as a result of how markdown needs to be parsed and HTML needs to be generated/inserted within the docsify plugin system. I'm sure it can be done, but after a few failed attempts I decided to move on assuming it wasn't a common use case. If there is a strong need for nested tabsets, let me know and we can discuss further.
I do really like your idea of providing tabs for markdown output and code on the Markdown page! I may explore this a bit and update the docsify-themeable accordingly. 😄
from docsify-tabs.
from docsify-tabs.
I appreciate you taking the time to file the issue. 😄
I have updated the Markdown section on the docsify-themeable website with the tabs per your suggestion. Great idea.
Thanks again, @gotjoshua.
from docsify-tabs.
Great that you like the tabbed markdown cheatsheet!
A last thought about nested:
Could it work to add an identifier to the comment blocks for start and end?
Not required, but always checked for in case nested tabs are wished.
eg:
<!-- tabs:start<<<OUTER -->
#### **outer tab containing nested tabs**
content above tabs
<!-- tabs:start<<<INNER -->
#### **inner tab contents**
<!-- tabs:end:INNER-->
#### **2nd outer tab without nested tabs**
content
<!-- tabs:end:OUTER -->
The idea is inspired by "Heredoc" multiline string syntax
Could this strategy make parsing more possible?
(I looked at the index.js code, but I don't have time to offer a PR, sorry)
from docsify-tabs.
Possibly, but that would add complexity for the end user which I would like to avoid if possible.
If nested tabs becomes an issue that needs to be solved, then I would most likely start with a library like balanced-match to (hopefully) make parsing tabsets easier. I didn't do this initially because parsing is pretty easy when you aren't worried about nested tabs and I didn't want to add a dependency unnecessarily.
For now, I'll chalk this up as a +1 for nested tabs. The other issue that needs to be resolved is tab wrapping on small screens. I'd like to address both of these issues at some point in the future, but for now I'm focused on other projects. If/when nested tabsets becomes an issue for you, give me a shout and I'll see if I have the bandwidth to make the necessary updates.
from docsify-tabs.
FYI, nested tabs are now supported as of v1.6.0.
from docsify-tabs.
nested tabs are now supported
👌👍🤩🙏
from docsify-tabs.
Related Issues (20)
- Hyperlink to tab HOT 5
- Minor typos in docs
- Doesn't work on pages linked via `alias` HOT 7
- Tab titles aren't processed by the markdown compiler HOT 2
- Tab not working in my case HOT 2
- I need your help,using this plug-in, refresh, can not locate the exact location of the page HOT 1
- Can tabs add support for the chinese title? HOT 2
- File include support HOT 1
- Vue.css theme is not supported HOT 1
- Can tabs add support for Mustache template? HOT 3
- Wrong parse with escape chars HOT 1
- Tabs not rendering as tabs HOT 4
- access document link ‘?Id=xxx’ positioning problem HOT 1
- Tabs unselected when changing pages HOT 7
- Multiple tabs with same name changed together when one tab is clicked, how to change only one? HOT 1
- After [filename](README.md ':include'), the docsify-tabs plugin in README.md fails HOT 1
- Search Functionality in Tabs Tables HOT 1
- Redirection to a header makes the tab active HOT 3
- Error when in quote HOT 4
- Can we independently control the label synchronization switching function? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docsify-tabs.