Skip to content

Instantly share code, notes, and snippets.

@anthony-wang
Last active March 23, 2018 10:01
Show Gist options
  • Save anthony-wang/92005b64a86b0481f926694d56d601b2 to your computer and use it in GitHub Desktop.
Save anthony-wang/92005b64a86b0481f926694d56d601b2 to your computer and use it in GitHub Desktop.
custom_replacements = Dict{Regex, Function}(
r"@fetch_sample_from_database: \"(.*)\"" => function (match)::String
database_key = match.captures[1]
source = find_source(global_database, database_key)
# return a String with any markdown accepted by Documenter:
"""
```@example
$source
```
"""
end
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment