2022-04-23 19:18:08 +00:00
|
|
|
---
|
|
|
|
eleventyNavigation:
|
|
|
|
key: MarkdownStyleguide
|
|
|
|
title: Markdown Styleguide
|
|
|
|
parent: Markdown
|
|
|
|
order: 10
|
|
|
|
---
|
|
|
|
|
2022-07-22 07:27:57 +00:00
|
|
|
This document should serve as a guide for the Markdown format which is commonly used in Codeberg.
|
2022-04-23 19:18:08 +00:00
|
|
|
|
|
|
|
## Bold
|
|
|
|
|
2022-07-22 07:27:57 +00:00
|
|
|
Use two stars at the beginning and the end of a section of text to **highlight the section in bold**.
|
2022-04-23 19:18:08 +00:00
|
|
|
|
|
|
|
## Italics
|
|
|
|
|
2022-07-22 07:27:57 +00:00
|
|
|
Use one star at the beginning and the end of a section to *highlight the section in italics*.
|
2022-04-23 19:18:08 +00:00
|
|
|
|
|
|
|
## Links
|
|
|
|
|
|
|
|
Use `[link description](link)` to link to another section, article or website.
|
|
|
|
|
2022-07-22 07:27:57 +00:00
|
|
|
To insert a link without a link description, surround the link by less-than `<` and
|
2022-04-23 19:18:08 +00:00
|
|
|
greater-than `>` characters. This is preferred to just adding an url within the text as it
|
2022-07-22 07:27:57 +00:00
|
|
|
is easier to parse the URLs.
|
2022-04-23 19:18:08 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
<https://codeberg.org/>
|
|
|
|
|
|
|
|
## Topics
|
|
|
|
|
2022-07-22 07:27:57 +00:00
|
|
|
Use ATX Style topics by adding one or more hash `#` signs to the start of the topic line.
|
2022-04-23 19:18:08 +00:00
|
|
|
|
|
|
|
## Preformatted sections
|
|
|
|
|
2022-07-22 07:27:57 +00:00
|
|
|
Use a single backtick characters to preformat a word or a section within a line.
|
2022-04-23 19:18:08 +00:00
|
|
|
|
2022-07-22 07:27:57 +00:00
|
|
|
Use three backticks to begin and end a preformatted section.
|
2022-04-23 19:18:08 +00:00
|
|
|
|
|
|
|
Use rendering hints to tell the renderer whether to syntax highlight your section and which language should be used.
|
|
|
|
|
|
|
|
## Tables
|
|
|
|
|
2022-07-22 07:27:57 +00:00
|
|
|
Always delimit both sides of a table with pipes `|`. Keep the tables readable even in the un-rendered text-form.
|