aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/plugins/PluginMarkdownTest.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam+github@flibidi.net>2016-10-22 12:53:15 +0200
committerGitHub <noreply@github.com>2016-10-22 12:53:15 +0200
commit761b4e283737a48934457855448df98e8014ba73 (patch)
tree3a98fc6dee7edd3a13f335f97fb9bc4faf95f064 /tests/plugins/PluginMarkdownTest.php
parent3d5e0aede31e07f060e3ca470d36374c54d5040c (diff)
parentc5941f316a49c94eff354b63e75b3add98ac4aea (diff)
downloadShaarli-761b4e283737a48934457855448df98e8014ba73.tar.gz
Shaarli-761b4e283737a48934457855448df98e8014ba73.tar.zst
Shaarli-761b4e283737a48934457855448df98e8014ba73.zip
Merge pull request #674 from ArthurHoaro/parsedown-composer
Use Composer for Parsedown and fix an issue with links
Diffstat (limited to 'tests/plugins/PluginMarkdownTest.php')
-rw-r--r--tests/plugins/PluginMarkdownTest.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/plugins/PluginMarkdownTest.php b/tests/plugins/PluginMarkdownTest.php
index 3593a556..12bdda24 100644
--- a/tests/plugins/PluginMarkdownTest.php
+++ b/tests/plugins/PluginMarkdownTest.php
@@ -151,4 +151,17 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase
151 $data = hook_markdown_render_daily($data); 151 $data = hook_markdown_render_daily($data);
152 $this->assertEquals($str, $data['cols'][0][0]['formatedDescription']); 152 $this->assertEquals($str, $data['cols'][0][0]['formatedDescription']);
153 } 153 }
154
155 /**
156 * Test hashtag links processed with markdown.
157 */
158 function testMarkdownHashtagLinks()
159 {
160 $md = file_get_contents('tests/plugins/resources/markdown.md');
161 $md = format_description($md);
162 $html = file_get_contents('tests/plugins/resources/markdown.html');
163
164 $data = process_markdown($md);
165 $this->assertEquals($html, $data);
166 }
154} 167}