effort: mediumhelp wanted
Description
☝️ has a lot of repetitive behaviors and is closed off to other developers.
It would be great if plumber (and others) could register the functions (similar to parsers and serializers) and allow them to parse a block independently.
Example:
#* @mycustomplumbertag key value value2
Thoughts:
- Only a single line should be attempt at one time. (This is current behavior)
- Once a block parser is a hit, the remaining block parsers should not attempted.
- Don't know what should be supplied or be returned from the block parsers. There is a lot of global state that is currently being altered in the function above. This state should be continued throughout the block's parsing.
- Should we be allowed to overwrite? Maybe a verbose argument? (like the parsers and serializers)
- "block parser" or "plumb block" is a confusing name. Need a better one.