for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hanneskod\readmetester\Format;
/**
* Identify markdown formatted php code blocks
*/
class Markdown implements FormatInterface
{
public function getName()
return "Markdown";
}
public function isExampleStart($line)
return !!preg_match('/^```php\s*$/i', $line);
public function isExampleEnd($line)
return !!preg_match('/^```\s*$/', $line);