Markdown plugin: fix RSS feed direct link reverse
The plugin was only reversing permalinks and failed with setting rss_permalinks set to false
This commit is contained in:
parent
0a4bc5a17d
commit
354fb98cc9
2 changed files with 11 additions and 1 deletions
tests/plugins
|
@ -156,6 +156,16 @@ class PluginMarkdownTest extends \PHPUnit\Framework\TestCase
|
|||
$this->assertEquals($expected, $processedText);
|
||||
}
|
||||
|
||||
public function testReverseFeedDirectLink()
|
||||
{
|
||||
$text = 'Description... ';
|
||||
$text .= '— <a href="http://domain.tld/?0oc_VQ" title="Direct link">Direct link</a>';
|
||||
$expected = 'Description... — [Direct link](http://domain.tld/?0oc_VQ)';
|
||||
$processedText = reverse_feed_permalink($text);
|
||||
|
||||
$this->assertEquals($expected, $processedText);
|
||||
}
|
||||
|
||||
public function testReverseLastFeedPermalink()
|
||||
{
|
||||
$text = 'Description... ';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue