/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

  1. % A nice filter to remove version information from footer
  2. %!postproc(html): '(generated by txt2tags) [0-9.]+' '\1'
  3. % A nice filter to remove absolute path differences
  4. %!postproc(html): '(^<!-- cmdline: txt2tags .* -i ).*?(/test/path/relative-path.t2t)' '\1/path/to\2'
  5. % Styles
  6. %!style: ../../upup.css
  7. %!style: ../up.css
  8. %!style: current.css
  9. %!style: folder/sub.css
  10. %!style: folder/subfolder/subsub.css
  11. %!style: folder/subfolder/../sub.css
  12. %!style: folder/subfolder/../../current.css
  13. %!style: folder/subfolder/../../../up.css
  14. %!style: folder/subfolder/../../../../upup.css
  15. %!style: /absolute.css
  16. %!style: http://txt2tags.org/site.css
  17. %!style: https://txt2tags.org/site.css
  18. % Styles in %!options
  19. %!options: --style ../../upup.css
  20. %!options: --style ../up.css
  21. %!options: --style current.css
  22. %!options: --style folder/sub.css
  23. %!options: --style folder/subfolder/subsub.css
  24. %!options: --style folder/subfolder/../sub.css
  25. %!options: --style folder/subfolder/../../current.css
  26. %!options: --style folder/subfolder/../../../up.css
  27. %!options: --style folder/subfolder/../../../../upup.css
  28. %!options: --style /absolute.css
  29. %!options: --style http://txt2tags.org/site.css
  30. %!options: --style https://txt2tags.org/site.css
  31. % Images
  32. [../../upup.png]
  33. [../up.png]
  34. [current.png]
  35. [folder/sub.png]
  36. [folder/subfolder/subsub.png]
  37. [folder/subfolder/../sub.png]
  38. [folder/subfolder/../../current.png]
  39. [folder/subfolder/../../../up.png]
  40. [folder/subfolder/../../../../upup.png]
  41. % Images as local link labels
  42. [[../../upup.png] foo.html]
  43. [[../up.png] foo.html]
  44. [[current.png] foo.html]
  45. [[folder/sub.png] foo.html]
  46. [[folder/subfolder/subsub.png] foo.html]
  47. [[folder/subfolder/../sub.png] foo.html]
  48. [[folder/subfolder/../../current.png] foo.html]
  49. [[folder/subfolder/../../../up.png] foo.html]
  50. [[folder/subfolder/../../../../upup.png] foo.html]
  51. % Images as anchor labels
  52. [[../../upup.png] #foo]
  53. [[../up.png] #foo]
  54. [[current.png] #foo]
  55. [[folder/sub.png] #foo]
  56. [[folder/subfolder/subsub.png] #foo]
  57. [[folder/subfolder/../sub.png] #foo]
  58. [[folder/subfolder/../../current.png] #foo]
  59. [[folder/subfolder/../../../up.png] #foo]
  60. [[folder/subfolder/../../../../upup.png] #foo]
  61. % Images as internet link labels
  62. [[../../upup.png] http://www.foo.com]
  63. [[../up.png] http://www.foo.com]
  64. [[current.png] http://www.foo.com]
  65. [[folder/sub.png] http://www.foo.com]
  66. [[folder/subfolder/subsub.png] http://www.foo.com]
  67. [[folder/subfolder/../sub.png] http://www.foo.com]
  68. [[folder/subfolder/../../current.png] http://www.foo.com]
  69. [[folder/subfolder/../../../up.png] http://www.foo.com]
  70. [[folder/subfolder/../../../../upup.png] http://www.foo.com]
  71. % Images with absolute paths must be untouched
  72. [/foo/bar.png]
  73. [[/foo/bar.png] foo.html]
  74. [[/foo/bar.png] #foo]
  75. [[/foo/bar.png] http://www.foo.com]
  76. % Local named links
  77. [Foo ../../upup.html]
  78. [Foo ../up.html]
  79. [Foo current.html]
  80. [Foo folder/sub.html]
  81. [Foo folder/subfolder/subsub.html]
  82. [Foo folder/subfolder/../sub.html]
  83. [Foo folder/subfolder/../../current.html]
  84. [Foo folder/subfolder/../../../up.html]
  85. [Foo folder/subfolder/../../../../upup.html]
  86. % Anchors (no changes)
  87. [Foo #foo]
  88. % Internet named links (no changes)
  89. [Foo http://foo.com]