Created
June 17, 2024 20:41
-
-
Save cpfiffer/23cc138f63e6a1c6644485e0e13f3618 to your computer and use it in GitHub Desktop.
Quick julia script to display markdown
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
#!/usr/bin/env bash | |
program=" | |
import Markdown | |
map(ARGS) do f | |
c = if isfile(f) | |
read(f, String) | |
else | |
f | |
end | |
display(Markdown.parse(c)) | |
end | |
" | |
julia -e "$program" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment