add inline expansion to mode=medium pages