Implementing new 'contained' layout. Use for .md files.