Extract table macros and remove duplication
Use path prefix for internal links