add preleminary rich text directive and minor fixes
add simple markdown directive with preview mode, some style changes