[Minor] Use variable  to denote block element type rather than using flags; create a function  to close previous block when entering new block.
Rename files:

cc98_md2ubb.awk -> md2ubb.awk
input -> test.md