Litedown: reorganized parser's code. No functional change intended