support building html inline
add more doc
inline support and fix bugs