Skip to content

Instantly share code, notes, and snippets.

@cpfiffer
Created June 17, 2024 20:41
Show Gist options
  • Save cpfiffer/23cc138f63e6a1c6644485e0e13f3618 to your computer and use it in GitHub Desktop.
Save cpfiffer/23cc138f63e6a1c6644485e0e13f3618 to your computer and use it in GitHub Desktop.
Quick julia script to display markdown
#!/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