mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2026-03-14 20:55:51 +01:00
Modernize the bundle, add parser implementation choice, and improve doc.
This commit is contained in:
parent
940814a1d3
commit
f04bb4a7e6
8 changed files with 85 additions and 121 deletions
14
MarkdownParserInterface.php
Normal file
14
MarkdownParserInterface.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace Knplabs\Bundle\MarkdownBundle;
|
||||
|
||||
interface MarkdownParserInterface
|
||||
{
|
||||
/**
|
||||
* Converts text to html using markdown rules
|
||||
*
|
||||
* @param string $text plain text
|
||||
* @return string rendered html
|
||||
*/
|
||||
function transform($text);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue