asciidoctor / asciidoctor.org

:globe_with_meridians: Asciidoctor project site. Composed in AsciiDoc. Baked with Awestruct.
https://asciidoctor.org
Other
323 stars 805 forks source link

List extension for rendering tabbed code blocks #823

Closed bmuschko closed 5 years ago

bmuschko commented 5 years ago

The extension is well documented on GitHub. Based on the discussion on Twitter, other users seem to be interested in the functionality.

mojavelinux commented 5 years ago

Thanks!

FYI, I also implemented tabsets in Antora. Here's the approach I took:

https://docs.couchbase.com/home/contribute/tabs.html

Here's the code: https://gitlab.com/antora/antora-asciidoctor-extensions/blob/master/tabs-block/extension.js

I prefer the nested code style instead of role correlation, though the extension could implement both structures.