refactor markdown support to enable non-method doc pages