emd
emd copied to clipboard
Minor refactor renderer
Extract options and renderer initialization.
This allows users to easier override just the redcarpet options (#5 ) and possible future implementations of using other renderers (#6).
This is a minor refactor to improve readability and extendability (e.g. for a TOCRenderer), inspired by original source https://stackoverflow.com/a/33778564/1680728 who quotes https://gist.github.com/davidjrice/3014948 .
If this would to be merged, the README needs modification (now in order to override the redcarpet options, the initializer will look different (better).