Lib detail: remove superfluous markup