This hook is registered with knitr to be automatically called when
the user sets the "cache
" chunk option.
If the chunk's engine is "drawio
", this function will compute a MD5
checksum of the specified source file (the "src
" chunk option) and
add it to the chunk options.
As knitr uses the chunk options to cache the result of a chunk,
this means that the chunk will not be re-executed as long as the MD5 stays
the same, i.e., the source diagram is not modified.