Skip to content

Commit

Permalink
GithubMarkdown: tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
xenocrat committed Oct 15, 2024
1 parent 3e78d6d commit 0553966
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/GithubMarkdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,6 @@ class GithubMarkdown extends Markdown
'Headline',
];

/**
* @var boolean Whether to interpret newlines as `<br />` tags.
*
* This feature is useful for comments where newlines are often
* meant to be hard line breaks.
*/
public $enableNewlines = false;

/**
* @var boolean Whether to sanitize disallowed raw HTML tags.
*
* This toggles section 6.11 of the GFM specification on or off.
*/
public $disallowedRawHTML = true;

/**
* @var array Disallowed HTML elements defined in GFM spec
* @see https://github.github.com/gfm/#disallowed-raw-html-extension-
Expand All @@ -71,6 +56,21 @@ class GithubMarkdown extends Markdown
'xmp',
];

/**
* @var boolean Whether to sanitize disallowed raw HTML tags.
*
* This toggles section 6.11 of the GFM specification on or off.
*/
public $disallowedRawHTML = true;

/**
* @var boolean Whether to interpret newlines as `<br />` tags.
*
* This feature is useful for comments where newlines are often
* meant to be hard line breaks.
*/
public $enableNewlines = false;

/**
* @inheritDoc
*/
Expand Down

0 comments on commit 0553966

Please sign in to comment.