Skip to content

Conversation

@fwolfst
Copy link
Contributor

@fwolfst fwolfst commented Feb 28, 2019

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 .

@fwolfst
Copy link
Contributor Author

fwolfst commented Mar 1, 2019

If this would to be merged, the README needs modification (now in order to override the redcarpet options, the initializer will look different (better).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant