lib/markdown: use a break label instead of a local flag