diff options
-rw-r--r-- | assets/default/scss/shaarli.scss | 2 | ||||
-rw-r--r-- | plugins/markdown/markdown.php | 2 | ||||
-rw-r--r-- | tests/plugins/PluginMarkdownTest.php | 10 | ||||
-rw-r--r-- | yarn.lock | 6 |
4 files changed, 16 insertions, 4 deletions
diff --git a/assets/default/scss/shaarli.scss b/assets/default/scss/shaarli.scss index 61e382b6..cd5dd9e6 100644 --- a/assets/default/scss/shaarli.scss +++ b/assets/default/scss/shaarli.scss | |||
@@ -1436,6 +1436,8 @@ form { | |||
1436 | -webkit-transition: opacity 500ms ease-in-out; | 1436 | -webkit-transition: opacity 500ms ease-in-out; |
1437 | -moz-transition: opacity 500ms ease-in-out; | 1437 | -moz-transition: opacity 500ms ease-in-out; |
1438 | -o-transition: opacity 500ms ease-in-out; | 1438 | -o-transition: opacity 500ms ease-in-out; |
1439 | min-width: 1px; | ||
1440 | min-height: 1px; | ||
1439 | 1441 | ||
1440 | &.b-loaded { | 1442 | &.b-loaded { |
1441 | opacity: 1; | 1443 | opacity: 1; |
diff --git a/plugins/markdown/markdown.php b/plugins/markdown/markdown.php index 628970d6..f6f66cc5 100644 --- a/plugins/markdown/markdown.php +++ b/plugins/markdown/markdown.php | |||
@@ -259,7 +259,7 @@ function reverse_space2nbsp($description) | |||
259 | 259 | ||
260 | function reverse_feed_permalink($description) | 260 | function reverse_feed_permalink($description) |
261 | { | 261 | { |
262 | return preg_replace('@— <a href="([^"]+)" title="[^"]+">(\w+)</a>$@im', '— [$2]($1)', $description); | 262 | return preg_replace('@— <a href="([^"]+)" title="[^"]+">([^<]+)</a>$@im', '— [$2]($1)', $description); |
263 | } | 263 | } |
264 | 264 | ||
265 | /** | 265 | /** |
diff --git a/tests/plugins/PluginMarkdownTest.php b/tests/plugins/PluginMarkdownTest.php index 9ddbc558..15fa9ba5 100644 --- a/tests/plugins/PluginMarkdownTest.php +++ b/tests/plugins/PluginMarkdownTest.php | |||
@@ -156,6 +156,16 @@ class PluginMarkdownTest extends \PHPUnit\Framework\TestCase | |||
156 | $this->assertEquals($expected, $processedText); | 156 | $this->assertEquals($expected, $processedText); |
157 | } | 157 | } |
158 | 158 | ||
159 | public function testReverseFeedDirectLink() | ||
160 | { | ||
161 | $text = 'Description... '; | ||
162 | $text .= '— <a href="http://domain.tld/?0oc_VQ" title="Direct link">Direct link</a>'; | ||
163 | $expected = 'Description... — [Direct link](http://domain.tld/?0oc_VQ)'; | ||
164 | $processedText = reverse_feed_permalink($text); | ||
165 | |||
166 | $this->assertEquals($expected, $processedText); | ||
167 | } | ||
168 | |||
159 | public function testReverseLastFeedPermalink() | 169 | public function testReverseLastFeedPermalink() |
160 | { | 170 | { |
161 | $text = 'Description... '; | 171 | $text = 'Description... '; |
@@ -3428,9 +3428,9 @@ lodash.uniq@^4.5.0: | |||
3428 | integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= | 3428 | integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= |
3429 | 3429 | ||
3430 | lodash@^4.0.0, lodash@^4.17.11, lodash@^4.17.4, lodash@^4.3.0, lodash@~4.17.10: | 3430 | lodash@^4.0.0, lodash@^4.17.11, lodash@^4.17.4, lodash@^4.3.0, lodash@~4.17.10: |
3431 | version "4.17.11" | 3431 | version "4.17.15" |
3432 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d" | 3432 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" |
3433 | integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg== | 3433 | integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== |
3434 | 3434 | ||
3435 | longest@^1.0.1: | 3435 | longest@^1.0.1: |
3436 | version "1.0.1" | 3436 | version "1.0.1" |