Conver meta text to document for Google Apps Script

works in Document container.

metas
line equals 
#page , do page break
line ends with #14b ,line convert to font-size 14 and bold text