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*