/test/http/web/relative-path.t2t
http://txt2tags.googlecode.com/ · Unknown · 101 lines · 89 code · 12 blank · 0 comment · 0 complexity · 6a51612354430bff1501ae170b9d0f55 MD5 · raw file
- % A nice filter to remove version information from footer
- %!postproc(html): '(generated by txt2tags) [0-9.]+' '\1'
- % A nice filter to remove absolute path differences
- %!postproc(html): '(^<!-- cmdline: txt2tags .* -i ).*?(/test/path/relative-path.t2t)' '\1/path/to\2'
- % Styles
- %!style: ../../upup.css
- %!style: ../up.css
- %!style: current.css
- %!style: folder/sub.css
- %!style: folder/subfolder/subsub.css
- %!style: folder/subfolder/../sub.css
- %!style: folder/subfolder/../../current.css
- %!style: folder/subfolder/../../../up.css
- %!style: folder/subfolder/../../../../upup.css
- %!style: /absolute.css
- %!style: http://txt2tags.org/site.css
- %!style: https://txt2tags.org/site.css
- % Styles in %!options
- %!options: --style ../../upup.css
- %!options: --style ../up.css
- %!options: --style current.css
- %!options: --style folder/sub.css
- %!options: --style folder/subfolder/subsub.css
- %!options: --style folder/subfolder/../sub.css
- %!options: --style folder/subfolder/../../current.css
- %!options: --style folder/subfolder/../../../up.css
- %!options: --style folder/subfolder/../../../../upup.css
- %!options: --style /absolute.css
- %!options: --style http://txt2tags.org/site.css
- %!options: --style https://txt2tags.org/site.css
- % Images
- [../../upup.png]
- [../up.png]
- [current.png]
- [folder/sub.png]
- [folder/subfolder/subsub.png]
- [folder/subfolder/../sub.png]
- [folder/subfolder/../../current.png]
- [folder/subfolder/../../../up.png]
- [folder/subfolder/../../../../upup.png]
- % Images as local link labels
- [[../../upup.png] foo.html]
- [[../up.png] foo.html]
- [[current.png] foo.html]
- [[folder/sub.png] foo.html]
- [[folder/subfolder/subsub.png] foo.html]
- [[folder/subfolder/../sub.png] foo.html]
- [[folder/subfolder/../../current.png] foo.html]
- [[folder/subfolder/../../../up.png] foo.html]
- [[folder/subfolder/../../../../upup.png] foo.html]
- % Images as anchor labels
- [[../../upup.png] #foo]
- [[../up.png] #foo]
- [[current.png] #foo]
- [[folder/sub.png] #foo]
- [[folder/subfolder/subsub.png] #foo]
- [[folder/subfolder/../sub.png] #foo]
- [[folder/subfolder/../../current.png] #foo]
- [[folder/subfolder/../../../up.png] #foo]
- [[folder/subfolder/../../../../upup.png] #foo]
- % Images as internet link labels
- [[../../upup.png] http://www.foo.com]
- [[../up.png] http://www.foo.com]
- [[current.png] http://www.foo.com]
- [[folder/sub.png] http://www.foo.com]
- [[folder/subfolder/subsub.png] http://www.foo.com]
- [[folder/subfolder/../sub.png] http://www.foo.com]
- [[folder/subfolder/../../current.png] http://www.foo.com]
- [[folder/subfolder/../../../up.png] http://www.foo.com]
- [[folder/subfolder/../../../../upup.png] http://www.foo.com]
- % Images with absolute paths must be untouched
- [/foo/bar.png]
- [[/foo/bar.png] foo.html]
- [[/foo/bar.png] #foo]
- [[/foo/bar.png] http://www.foo.com]
- % Local named links
- [Foo ../../upup.html]
- [Foo ../up.html]
- [Foo current.html]
- [Foo folder/sub.html]
- [Foo folder/subfolder/subsub.html]
- [Foo folder/subfolder/../sub.html]
- [Foo folder/subfolder/../../current.html]
- [Foo folder/subfolder/../../../up.html]
- [Foo folder/subfolder/../../../../upup.html]
- % Anchors (no changes)
- [Foo #foo]
- % Internet named links (no changes)
- [Foo http://foo.com]