Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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