markdown compiling. ported old sample chapter.