MyShaarli/tests/plugins/resources/markdown.md
ArthurHoaro 86ceea054f Add a whitelist of protocols for URLs
- for Shaare
 - for markdown description links and images

Not whitelisted protocols will be replaced by `http://`
2017-05-25 14:58:34 +02:00

34 lines
No EOL
785 B
Markdown

* test:
* [zero](http://link.tld)
+ [two](http://link.tld)
- [three](http://link.tld)
1. [zero](http://link.tld)
2. [two](http://link.tld)
3. [three](http://link.tld)
4. [four](http://link.tld)
5. foo #foobar
#foobar foo `lol #foo` #bar
fsdfs http://link.tld #foobar `http://link.tld`
http://link.tld #foobar
next #foo
Block:
```
lorem ipsum #foobar http://link.tld
#foobar http://link.tld
```
[link](?123456)
![link](/img/train.png)
[link](test.tld/path/?query=value#hash)
[link](http://test.tld/path/?query=value#hash)
[link](https://test.tld/path/?query=value#hash)
[link](ftp://test.tld/path/?query=value#hash)
[link](magnet:test.tld/path/?query=value#hash)
[link](javascript:alert('xss'))
[link](other://test.tld/path/?query=value#hash)