2022-04-23 12:18:08 -07:00
|
|
|
---
|
|
|
|
|
eleventyNavigation:
|
|
|
|
|
key: Topics
|
|
|
|
|
title: Topics
|
|
|
|
|
parent: Markdown
|
|
|
|
|
order: 40
|
|
|
|
|
---
|
|
|
|
|
|
2022-07-22 00:27:57 -07:00
|
|
|
Markdown can help you to divide a document into several parts using topics (a.k.a headings).
|
2022-04-23 12:18:08 -07:00
|
|
|
|
|
|
|
|
Topics can be specified in two ways:
|
|
|
|
|
|
|
|
|
|
- with one or more leading hash characters `#` (ATX-Style)
|
|
|
|
|
- by underlining a topic with dashes `-` or equal signs `=` (Setext-Style)
|
|
|
|
|
|
2022-07-22 00:27:57 -07:00
|
|
|
The Setext provides only two layers of subdivision and the ATX-Style provides up to 6.
|
2022-04-23 12:18:08 -07:00
|
|
|
|
2022-07-22 00:27:57 -07:00
|
|
|
The Codeberg documentation uses the ATX-style. In the documentation, the first topic
|
2022-04-23 12:18:08 -07:00
|
|
|
is omitted as it is already provided in the header section of the documentation file.
|
2022-10-03 12:35:01 -07:00
|
|
|
See the article on [How do I create a new article?](/improving-documentation/create-article/)
|
2022-04-23 12:18:08 -07:00
|
|
|
for further details.
|
|
|
|
|
|
|
|
|
|
**Note:** This document may seem a little unstructured, as there are a bunch of topics with only a small
|
2022-07-22 00:27:57 -07:00
|
|
|
amount of text. Unfortunately, there is no other way to present Topics in Markdown.
|
2022-04-23 12:18:08 -07:00
|
|
|
|
|
|
|
|
### Examples of topics with hash characters
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
# 1st Topic
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
# 1st Topic
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
## 2nd Topic
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 2nd Topic
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
### 3rd Topic
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 3rd Topic
|
|
|
|
|
|
|
|
|
|
### Examples of topics with dashes and equal signs
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
This is a topic
|
|
|
|
|
===============
|
|
|
|
|
```
|
|
|
|
|
|
2024-06-11 00:51:22 -07:00
|
|
|
# This is a topic
|
2022-04-23 12:18:08 -07:00
|
|
|
|
|
|
|
|
```
|
|
|
|
|
This is another topic
|
|
|
|
|
---------------------
|
|
|
|
|
```
|
|
|
|
|
|
2024-06-11 00:51:22 -07:00
|
|
|
## This is another topic
|