Last active
March 23, 2018 10:01
-
-
Save anthony-wang/92005b64a86b0481f926694d56d601b2 to your computer and use it in GitHub Desktop.
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