mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-05-04 14:43:17 +02:00
3c541b580b
Refactored way how parsers are initialized, and allow to select parser while rendering Interface `MarkdownParserInterface` method name was changed from `#transform($text)` to `#transformMarkdown($text)`
16 lines
276 B
PHP
16 lines
276 B
PHP
<?php
|
|
|
|
namespace Knp\Bundle\MarkdownBundle;
|
|
|
|
interface MarkdownParserInterface
|
|
{
|
|
/**
|
|
* Converts text to html using markdown rules
|
|
*
|
|
* @param string $text plain text
|
|
*
|
|
* @return string rendered html
|
|
*/
|
|
function transformMarkdown($text);
|
|
}
|