#1231: Adding Tabs in Articles

Отредактирована: 45 дней назад

Symptoms

It is often necessary to add instructions for different operating systems / programming languages to an article.

How to make tabs so that each operating system / programming language has its own tab?

Solution

Starting from version v5.7.x, the tab creation function is available.
To add tabs, switch the editor to Markdown mode and add the following source code:

::::tabs
  :::tab-item{title="Tab 1"}
  Some content 1
  :::
  :::tab-item{title="Tab 2"}
  Some content 2
  :::
::::