Last active
March 23, 2018 10:01
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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