#
Tab
With Retype, a Tab component is super simple to configure by surrounding a block of text with +++ and including a title for the tab.
+++ Tab 1
This is a Tab
+++
This is a Tab
The tab title must be separated from the opening +++ by one space. The pattern +++ Tab will work as expected, and +++Tab 1 will not.
#
Multiple tabs
Multiple Tabs can be configured by stacking multiple +++ blocks and adding a title for each tab.
+++ Tab 1
This is a Tab
+++ Tab 2
This is another Tab
+++ Tab 3
Wow! Yet another tab :+1:
+++
This is a Tab
This is another Tab
Wow! Yet another tab 👍
#
Empty lines
Extra empty lines at the start or end of the Tab are allowable, although ignored. Tabs can contain any number of leading or trailing empty lines.
+++ Tab 1
This is a Tab
+++ Tab 2
This is another Tab
+++ Tab 3
Wow! Yet another tab :+1:
+++
This is a Tab
This is another Tab
Wow! Yet another tab 👍
#
Anchors
Each Tab is an anchor that allows for linking directly to the tab by passing the anchor in a URL.
If the tab anchor is passed in the URL, when the page loads, the page will be automatically scrolled to that tab position and the tab will be selected.
To get the tab URL with the anchor, right-click on the tab and select Copy Link Address.
[Tab anchor link](#tab-3)
#
Custom attributes
Custom id and CSS class attributes can be applied to a Tab using the {#id .class} syntax.
+++ Tab 1 {#getting-started .highlight}
This Tab has a custom id and class.
+++ Tab 2
This is another Tab.
+++
This Tab has a custom id and class.
This is another Tab.
Linking to the custom id scrolls to and activates the Tab:
See also
The latest release of Retype is v4.0.1.
Blocks of code or any preformatted text can be displayed by wrapping with triple backticks characters before and after.
Retype Flavored Markdown (RFM) supports custom Components, including:
Markdown .md pages are plain text documents with a simple human readable syntax that aims to make writing for the internet easier.
This guide will have you up and running generating your own Retype website in just a few minutes.
A Steps component is created by surrounding a block of content with and including a title for each step.
Retype v4.0 is here! This major version release brings powerful new components, expanded templating capabilities, and a complete upgrade of all