Difference between revisions of "Markdown Editor"

From WHMCS Documentation

(Editor)
(Markdown Guide)
Line 115: Line 115:
 
<tr>
 
<tr>
 
<td>
 
<td>
<nowiki>As Kanye West said:</nowiki>
+
<nowiki>Header for quotes:</nowiki>
  
<nowiki>> We're living the future so.</nowiki><br/>
+
<nowiki>> This is the first line of the quote</nowiki><br/>
 
<nowiki>>.</nowiki><br/>
 
<nowiki>>.</nowiki><br/>
<nowiki>> the present is our past.</nowiki>
+
<nowiki>> followed by the second line.</nowiki>
 
</td>
 
</td>
 
<td>
 
<td>
<samp><p>As Kanye West said:</p>
+
<samp><p>Header for quotes:</p>
 
<blockquote>
 
<blockquote>
<p>We're living the future so</p>
+
<p>This is the first line of the quote</p>
<p>the present is our past.</p>
+
<p>followed by the second line.</p>
 
</blockquote>
 
</blockquote>
 
</samp>
 
</samp>

Revision as of 14:55, 1 February 2022

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

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.