Pattern driven node list manipulation in LuaTeX.