mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-06-10 09:52:19 +02:00
7f115dc73f
All code in the bundle is still relying on the transformMarkdown method in parsers, not on the transform method. Normal parsers are still working because they still have the method, and PHP does not have strict type checking for typehints. However, the SundownParser was still broken. #51 renamed the method to avoid a fatal error for the interface, but then the method used by the bundle became missing.
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);
|
|
}
|