You appear to be a bot. Output may be restricted
Description
Format markdown listDecide what to do when we see a blank line? We won't know if we're starting actually starting a list until we see the first '-' But a blank line will end the list. We need to know the list type.
Usage
$integer = oikai_format_markdown_list( $list );
Parameters
- $list
- ( integer ) required – whether or not we think we're in a list. false, true, next list item
Returns
integer new valueSource
File name: oik-shortcodes/shortcodes/oik-api-importer.phpLines:
1 to 11 of 11
function oikai_format_markdown_list( $list ) { if ( $list >= 1 ) { etag( oikai_list_type() ); $list = 0; } else { //$list = (int) !$list; $list = 0; } //e( __FUNCTION__ . $list ); return( $list ); }View on GitHub