Markdown Editor

From WHMCS Documentation

WHMCS supports Markdown for formatting of ticket messages, notes, client notes and more.

You can access the markdown editor when you submit or reply to support tickets at Support > Support Tickets or create a predefined reply at Support > Predefined Replies.

Supported formatting includes:

  • Bold
  • Italics
  • Headings
  • Bulleted Lists
  • Numbered Lists
  • Code Blocks
  • Quotes

Editor

An editor is provided that makes it easy to apply common formatting.

The following screenshot provides an example of the editor in Preview Mode for a support ticket reply.

Markdown-editor.jpg

Markdown Guide

A convenient and easily accessible Markdown Guide is provided within the product accessible via the Help icon within the editor toolbar at any time.

Markdown Output

# This is an <h1> tag

## This is an <h2> tag

###### This is an <h6> tag

This is an <h1> tag

This is an <h2> tag

This is an <h6> tag

*This text will be italic*

_This will also be italic_

**This text will be bold**

__This will also be bold__

_You **can** combine them_

This text will be italic

This will also be italic

This text will be bold

This will also be bold

You can combine them

* Item 1

* Item 2

* Item 2a

* Item 2b

  • Item 1
  • Item 2
    • Item 2a
    • Item 2b

1. Item 1

2. Item 2

3. Item 3

* Item 3a

* Item 3b

  1. Item 1
  2. Item 2
  3. Item 3
    • Item 3a
    • Item 3b

[WHMCS Marketplace](http://marketplace.whmcs.com)

WHMCS Marketplace

Header for quotes:

> This is the first line of the quote
>.
> followed by the second line.

Header for quotes:

This is the first line of the quote

followed by the second line.

I think you should add padding around the `$string` output.

I think you should add padding around the $string output.