Style Guide

Here's a reference guide for markdown styling for VuePress projects in action!


Badges

Markdown Syntax:

VuePress - <Badge type="tip" text="v2.x.x" vertical="top" />
1
VuePress - <Badge type="warning" text="v2.x.x" vertical="middle" />
1
VuePress - <Badge type="danger" text="v2.x.x" vertical="bottom" />
1

Output:

VuePress - v2.x.x

VuePress - v2.x.x

VuePress - v2.x.x


Blockquotes

Markdown Syntax:

> This is a simple blockquote.
1
> **Blockquotes**  
> Can span multiple lines  
> (if _two spaces_ are added to the END of each non-ending line!)
1
2
3

Output:

This is a simple blockquote.

Blockquotes
Can span multiple lines
(if two spaces are added to the END of each non-ending line!)


Code: Block

Markdown Syntax:

  • Markdown code blocks can be done with 3 opening and closing backticks (```)
  • Or by using indent 4 spaces prior to the conten on each line
  • Code blocks can specify languages immediately after the opening 3 backticks
    • Examples: ```js, ```html, ```php, ```css, ```scss, etc.
  • Lines in code blocks can be highlighted singulary or in ranges
    • Syntax Examples: ```js{1}, ```js{1,3}, ```js{2-3}, ```js{1,2-3}

Code: Inline

Markdown Syntax:

`Inline code` with backticks
1

Output:

Inline code with backticks


Code: Tabbed Group Blocks

Markdown Syntax:

:::: code-group

::: code-group-item NPM
# code block here...
:::

::: code-group-item YARN
# code block here...
:::

::::
1
2
3
4
5
6
7
8
9
10
11

Output:

npm install
yarn add

Custom Containers: Basic

Markdown Syntax:

::: tip
This is a tip
:::
1
2
3
::: warning
This is a warning
:::
1
2
3
::: danger
This is a dangerous warning
:::
1
2
3
::: details
This is a details block
:::
1
2
3

Output:

TIP

This is a tip

WARNING

This is a warning

DANGER

This is a dangerous warning

This is a details block


Custom Containers: With Heading

Markdown Syntax:

::: tip TIP HEADING
This is a tip
:::
1
2
3
::: warning WARNING HEADING
This is a warning
:::
1
2
3
::: danger DANGER HEADING
This is a dangerous warning
:::
1
2
3
::: details Details Heading
This is a details block
:::
1
2
3

Output:

TIP HEADING

This is a tip

WARNING HEADING

This is a warning

DANGER HEADING

This is a dangerous warning

Details Heading

This is a details block


Headings

Markdown Syntax:

# Heading Level 1
1
## Heading Level 2
1
### Heading Level 3
1
#### Heading Level 4
1
##### Heading Level 5
1
###### Heading Level 6
1

Horizontal Rule

Markdown Syntax:

---
1

Output:



Images

Markdown Syntax:

![Image](/images/obe-wds-logo-vert-dark-ground.png)
1

Output:

Image


Markdown Syntax:

[OBE:WDS](https://obewds.com)
1

Output:

OBE:WDSopen in new window


Markdown Syntax:

[Relative Home Link](index.html)
1

Output:

Relative Home Link


Lists: Bulleted

Markdown Syntax:

* Bullet One
* Bullet Two
* Bullet Three
  * Sub-Bullet One
    * Sub-Sub-Bullet One
1
2
3
4
5

Output:

  • Bullet One
  • Bullet Two
  • Bullet Three
    • Sub-Bullet One
      • Sub-Sub-Bullet One

Lists: Numbered

Markdown Syntax:

1. Numbered One
1. Numbered Two
1. Numbered Three
1
2
3

Output:

  1. Numbered One
  2. Numbered Two
  3. Numbered Three

Text: Bold

Markdown Syntax:

**Bold Text**
1
__Bold Text__
1

Output:

Bold Text


Text: Italic

Markdown Syntax:

_Italic Text_
1
*Italic Text*
1

Output:

Italic Text


Last Updated: 12/4/2021, 5:13:08 PM
Contributors: OBE (Online Business Engineering)