backlink(.) doesn't work
authorJon Dowland <jmtd@debian.org>
Wed, 11 Jan 2012 15:13:46 +0000 (15:13 +0000)
committerJon Dowland <jmtd@debian.org>
Wed, 11 Jan 2012 15:13:46 +0000 (15:13 +0000)
doc/bugs/backlink__40__.__41___doesn__39__t_work.mdwn [new file with mode: 0644]
doc/bugs/backlink__40__.__41___doesn__39__t_work/test1.mdwn [new file with mode: 0644]
doc/bugs/backlink__40__.__41___doesn__39__t_work/test2.mdwn [new file with mode: 0644]

diff --git a/doc/bugs/backlink__40__.__41___doesn__39__t_work.mdwn b/doc/bugs/backlink__40__.__41___doesn__39__t_work.mdwn
new file mode 100644 (file)
index 0000000..6ec53d5
--- /dev/null
@@ -0,0 +1,6 @@
+It seems `backlink(.)` doesn't work, that is, it doesn't match pages linked
+to from the current page.
+
+[[!inline pages=test1 raw=true]]
+
+— [[Jon]]
diff --git a/doc/bugs/backlink__40__.__41___doesn__39__t_work/test1.mdwn b/doc/bugs/backlink__40__.__41___doesn__39__t_work/test1.mdwn
new file mode 100644 (file)
index 0000000..7fe3d70
--- /dev/null
@@ -0,0 +1,10 @@
+test1 links to [[test2]].
+
+`backlink(test1)`:
+
+[[!map pages="backlink(test1)"]]
+
+`backlink(.)`:
+
+[[!map pages="backlink(.)"]]
+
diff --git a/doc/bugs/backlink__40__.__41___doesn__39__t_work/test2.mdwn b/doc/bugs/backlink__40__.__41___doesn__39__t_work/test2.mdwn
new file mode 100644 (file)
index 0000000..a8b76de
--- /dev/null
@@ -0,0 +1 @@
+test2!