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

Allow interpolation and paragraphs in def_options #133

Merged
merged 1 commit into from
Dec 14, 2018

Conversation

bblaszkow06
Copy link
Member

Thanks to this change, you can use #{inspect(__MODULE__)} inside description of an option in def_option macro and put an empty line (separating paragraphs) without breaking the generated docs

@bblaszkow06 bblaszkow06 requested a review from mat-hek December 14, 2018 11:52
unquote(docs)
|> String.trim()
|> String.replace("\n\n", "\n\n ")
|> String.replace_prefix("", "* ")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better use ~> "* " <> &1

@bblaszkow06 bblaszkow06 merged commit 5783a29 into master Dec 14, 2018
@bblaszkow06 bblaszkow06 deleted the fix/options-docs branch December 14, 2018 12:31
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.

2 participants