| 1 | <?php  | 
            ||
| 18 | class MarkdownParser implements Parser  | 
            ||
| 19 | { | 
            ||
| 20 | /* -----------------------------------------------------------------  | 
            ||
| 21 | | Properties  | 
            ||
| 22 | | -----------------------------------------------------------------  | 
            ||
| 23 | */  | 
            ||
| 24 | |||
| 25 | /**  | 
            ||
| 26 | * Parser Options.  | 
            ||
| 27 | *  | 
            ||
| 28 | * @var array  | 
            ||
| 29 | */  | 
            ||
| 30 | private $options;  | 
            ||
| 31 | |||
| 32 | /* -----------------------------------------------------------------  | 
            ||
| 33 | | Constructor  | 
            ||
| 34 | | -----------------------------------------------------------------  | 
            ||
| 35 | */  | 
            ||
| 36 | |||
| 37 | 16 | public function __construct(array $options)  | 
            |
| 42 | |||
| 43 | /* -----------------------------------------------------------------  | 
            ||
| 44 | | Main Methods  | 
            ||
| 45 | | -----------------------------------------------------------------  | 
            ||
| 46 | */  | 
            ||
| 47 | |||
| 48 | /**  | 
            ||
| 49 | * Convert the given Markdown text into HTML.  | 
            ||
| 50 | *  | 
            ||
| 51 | * @param string $text  | 
            ||
| 52 | *  | 
            ||
| 53 | * @return string  | 
            ||
| 54 | */  | 
            ||
| 55 | 12 | public function convertToHtml(string $text): string  | 
            |
| 64 | }  | 
            ||
| 65 |