Formatting
This is a page with examples demonstrating how to use Markdown for formatting content in a wiki-style page.
Table of Contents
Headings
Headings in Markdown are created by placing one or more hash symbols #
at the beginning of a line. The number of hash symbols used indicates the level of the heading, from level 1 (the largest) to level 6 (the smallest). Here are examples of each heading level:
Examples
# Level 1 Heading
## Level 2 Heading
### Level 3 Heading
Text formatting
- Bold text is written using double asterisks:
**Bold**
. - Italic text is written using single asterisks:
*Italic*
. Strikethrough textis done with double tildes:~~Strikethrough~~
.
Blockquotes
Use >
before the text to create a blockquote.
This is a blockquote, useful for highlighting quotes or important text.
Horizontal Rule
Use ---
or ***
to create a horizontal rule:
Lists
Unordered List
- Item 1
- Subitem 1.1
- Subitem 1.2
- Item 2
- Item 3
Ordered List
1. First item
2. Second item
1. Sub-item 2.1
2. Sub-item 2.2
3. Third item
Links and Images
Links
[Link text](Link url)
Here’s a link to Nuxt Documentation.
Images
<img src="https://nuxt.com/assets/design-kit/icon-green.svg" alt="Nuxt.js logo" style="width:200px;"/>
Code Blocks
Inline Code
To highlight inline code, use backticks `console.log('Hello World')`
.
Block of Code
To create a multiline code block, use three backticks ```
followed by the language type (e.g., js
) on the next line. Here's an example:
```js
// This is a JavaScript code block
function greet() {
console.log('Hello from Nuxt!');
}
Table
| Name | Score |
|-------|-------|
| Anna | 30 |
| Peter | 28 |
| Emily | 42 |
Name | Score |
---|---|
Anna | 30 |
Peter | 28 |
Emily | 42 |