]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tests/plugins/PluginMarkdownTest.php
merge
[github/shaarli/Shaarli.git] / tests / plugins / PluginMarkdownTest.php
index 17ef228031331fba63fbb5ef567a3fc1fa06c04c..4a67b2dc8566b86c6becd7e4feab9bcbf84e8fed 100644 (file)
@@ -185,4 +185,17 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase
         $data = process_markdown($md);
         $this->assertEquals($html, $data);
     }
+
+    /**
+     * Test hashtag links processed with markdown.
+     */
+    function testMarkdownHashtagLinks()
+    {
+        $md = file_get_contents('tests/plugins/resources/markdown.md');
+        $md = format_description($md);
+        $html = file_get_contents('tests/plugins/resources/markdown.html');
+
+        $data = process_markdown($md);
+        $this->assertEquals($html, $data);
+    }
 }