File: test/sample/Backslash-escapes.text

Recommend this page to a friend!
  Classes of Manuel Lemos  >  PHP Markdown Parser  >  test/sample/Backslash-escapes.text  >  Download  
File: test/sample/Backslash-escapes.text
Role: Auxiliary data
Content type: text/plain
Description: Original test Markdown file by John Gruber
Class: PHP Markdown Parser
Parse Markdown documents and generate HTML tags
Author: By
Last change:
Date: 6 years ago
Size: 889 bytes
 

Contents

Download
These should all get escaped:

Backslash: \\

Backtick: \`

Asterisk: \*

Underscore: \_

Left brace: \{

Right brace: \}

Left bracket: \[

Right bracket: \]

Left paren: \(

Right paren: \)

Greater-than: \>

Hash: \#

Period: \.

Bang: \!

Plus: \+

Minus: \-



These should not, because they occur within a code block:

	Backslash: \\

	Backtick: \`

	Asterisk: \*

	Underscore: \_

	Left brace: \{

	Right brace: \}

	Left bracket: \[

	Right bracket: \]

	Left paren: \(

	Right paren: \)

	Greater-than: \>

	Hash: \#

	Period: \.

	Bang: \!

	Plus: \+

	Minus: \-


Nor should these, which occur in code spans:

Backslash: `\\`

Backtick: `` \` ``

Asterisk: `\*`

Underscore: `\_`

Left brace: `\{`

Right brace: `\}`

Left bracket: `\[`

Right bracket: `\]`

Left paren: `\(`

Right paren: `\)`

Greater-than: `\>`

Hash: `\#`

Period: `\.`

Bang: `\!`

Plus: `\+`

Minus: `\-`

For more information send a message to info at phpclasses dot org.