From 406adf692ab7963d0f73e7e8c2747af57cc12f15 Mon Sep 17 00:00:00 2001 From: jmtd Date: Wed, 6 Sep 2023 11:46:49 -0400 Subject: [PATCH] trace of match_ispage/pagetype --- .../ispage__40____41___does_not_work_as_expected.mdwn | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/bugs/ispage__40____41___does_not_work_as_expected.mdwn b/doc/bugs/ispage__40____41___does_not_work_as_expected.mdwn index 4964f4af1..41a9c7bc2 100644 --- a/doc/bugs/ispage__40____41___does_not_work_as_expected.mdwn +++ b/doc/bugs/ispage__40____41___does_not_work_as_expected.mdwn @@ -31,3 +31,14 @@ The second is empty. Expected behaviour: (with [[plugins/txt]] not enabled) *— [[Jon]], 2023-09-06* + +> here's a trace of what happens to `ispage()` when applied to the above example. +> +> * `match_ispage` gets called with argument "a/foo" +> * it calls `Ikiwiki::pagetype` with that argument unmodified +> * the first branch checks for a period, so fails +> * base is calculated to be "foo" +> * the next branch fails as $hooks{htmlize}{foo} is false +> * the function returns undefined. +> +> *— [[Jon]], 2023-09-06*