Help With Developing a Discourse Plugin for modified scratchblocks 'snap-blocks'

Maybe You find it useful - there is a proof of concept of such module.
You can install this as a component or just copy "head_tag.html" content as a custom header.
https://dardoro.github.io/discourse-scratchblocks.zip
Component source code

Uses ready-made parser and renderer made by
Tim Radvan & CO