public function markdown(string $markdown, array $args = []): string
    {
        if (!$markdown) {
            return $markdown;
        } elseif (!$this->canMarkdown()) {
            return $markdown;
        } elseif (!$this->WPCom_Markdown) {
            return $markdown;
        }
        $default_args = ['unslash' => false];
        $args += $default_args; // Merge defaults.

        return (string) $this->WPCom_Markdown->transform($markdown, $args);
    }
public function markdown(string $markdown, array $args = []): string
    {
        if (!$markdown) {
            return $markdown;
        } elseif (!$this->canMarkdown()) {
            return $markdown;
        } elseif (!$this->WPCom_Markdown) {
            return $markdown;
        }
        $default_args = ['unslash' => false];
        $args += $default_args; // Merge defaults.

        return (string) $this->WPCom_Markdown->transform($markdown, $args);
    }
public function markdown ( string $ markdown , array $ args = [ ] ) : string { if ( ! $ markdown ) { return $ markdown ; } elseif ( ! $ this -> canMarkdown ( ) ) { return $ markdown ; } elseif ( ! $ this -> WPCom_Markdown ) { return $ markdown ; } $ default_args = [ 'unslash' => false ] ; $ args += $ default_args ; // Merge defaults. return ( string ) $ this -> WPCom_Markdown -> transform ( $ markdown , $ args ) ; }
Markdown via Jetpack.

@since 160720 Jetpack utils.

@param string $markdown Markdown.
@param array  $args     Behavioral args.

@return string HTML from markdown.
Markdown via Jetpack .