Skip to content

Commit

Permalink
Use safer markdown defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Dec 30, 2018
1 parent 9d4193b commit 468e4e3
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions config/markdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,41 @@

/*
|--------------------------------------------------------------------------
| Safe Mode
| HTML Input
|--------------------------------------------------------------------------
|
| This option specifies if raw HTML is rendered in the document. Setting
| this to true will not render HTML, and false will.
| This option specifies how to handle untrusted HTML input.
|
| Default: false
| Default: 'strip'
|
*/

'safe' => true,
'html_input' => 'strip',

/*
|--------------------------------------------------------------------------
| Allow Unsafe Links
|--------------------------------------------------------------------------
|
| This option specifies whether to allow risky image URLs and links.
|
| Default: true
|
*/

'allow_unsafe_links' => false,

/*
|--------------------------------------------------------------------------
| Maximum Nesting Level
|--------------------------------------------------------------------------
|
| This option specifies the maximum permitted block nesting level.
|
| Default: INF
|
*/

'max_nesting_level' => INF,

];

0 comments on commit 468e4e3

Please sign in to comment.