freeze regexp hash
refactor api
update spec
remove unused describe
test api
merge
allow user custom code block handler
add code block handler spec