master: add strbuf to support output buffer; and add remove_extra_blanklines_of_codeblock