File: url-escaping.md

package info (click to toggle)
python-html2text 2014.9.25-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 404 kB
  • ctags: 143
  • sloc: python: 1,073; sh: 76; makefile: 14
file content (20 lines) | stat: -rw-r--r-- 1,048 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Markdown-sensible characters processing

This test checks special characters processing inside URLs: parenthesis and
brackets should be escaped to keep markdown image and anchor syntax safe and
sound.

  * [Some MSDN link using parenthesis](http://msdn.microsoft.com/en-us/library/system.drawing.drawing2d\(v=vs.110\))
  * [Google search result URL with unescaped brackets](https://www.google.ru/search?q=\[brackets are cool\])
  * [Yet another test for [brackets], {curly braces} and (parenthesis) processing inside the anchor](https://www.google.ru/search?q='\[\({}\)\]')
  * Use automatic links like <http://example.com/> when the URL is the label
  * Exempt [non-absolute_URIs](non-absolute_URIs) from automatic link detection

And here are images with tricky attribute values:

![\(banana\)](http://placehold.it/350x150#\(banana\))  
![\[banana\]](http://placehold.it/350x150#\[banana\])  
![{banana}](http://placehold.it/350x150#{banana})  
![\(\[{}\]\)](http://placehold.it/350x150#\(\[{}\]\))
![](http://placehold.it/350x150#\(\[{}\]\))