Made settings overridable.

Added error suppression operator to setting defines so they may be overriden from
an external file without causing PHP warnings.
This commit is contained in:
Michel Fortin 2007-09-04 07:32:19 -04:00
parent 152860ca6b
commit a26e466472
2 changed files with 9 additions and 5 deletions

View file

@ -209,6 +209,10 @@ Version History
`pre` tags at the end of a code block were appearing in the wrong
order.
* Overriding configuration settings by defining constants from an
external before markdown.php is included is now possible without
producing a PHP warning.
1.0.1i (31 Aug 2007):

View file

@ -20,10 +20,10 @@ define( 'MARKDOWN_VERSION', "1.0.1j" ); # Tue 4 Sep 2007
#
# Change to ">" for HTML output
define( 'MARKDOWN_EMPTY_ELEMENT_SUFFIX', " />");
@define( 'MARKDOWN_EMPTY_ELEMENT_SUFFIX', " />");
# Define the width of a tab for code blocks.
define( 'MARKDOWN_TAB_WIDTH', 4 );
@define( 'MARKDOWN_TAB_WIDTH', 4 );
#
@ -31,14 +31,14 @@ define( 'MARKDOWN_TAB_WIDTH', 4 );
#
# Change to false to remove Markdown from posts and/or comments.
define( 'MARKDOWN_WP_POSTS', true );
define( 'MARKDOWN_WP_COMMENTS', true );
@define( 'MARKDOWN_WP_POSTS', true );
@define( 'MARKDOWN_WP_COMMENTS', true );
### Standard Function Interface ###
define( 'MARKDOWN_PARSER_CLASS', 'Markdown_Parser' );
@define( 'MARKDOWN_PARSER_CLASS', 'Markdown_Parser' );
function Markdown($text) {
#