Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor settings to allow arbitrary user input #75

Merged
merged 6 commits into from
Aug 29, 2018
Merged

Conversation

DannyBen
Copy link
Owner

@DannyBen DannyBen commented Aug 23, 2018

This PR changes the Settings class so it no longer has keys stored as attributes. Instead, we are using method_missing to allow for flexibility, and prepare for letting users use any arbitrary setting they want, which could be useful for those who make their own themes.

In addition, this PR fixes a bug that was caused when a document contained headers that are build entirely of a link. The automatic anchor ID raised an exception here, so we are now avoiding header IDs unless the header is pure text.

Related to #74

@DannyBen DannyBen merged commit d89e3c1 into master Aug 29, 2018
@DannyBen DannyBen deleted the settings-refactor branch August 29, 2018 17:11
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