Documentation/content/markdown/markdown-styleguide.md

46 lines
1.2 KiB
Markdown
Raw Normal View History

---
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.
## 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**.
## 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*.
## 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
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.
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.
## 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-07-22 07:27:57 +00:00
Use three backticks to begin and end a preformatted section.
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.