在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:JuliaAttic/Markdown.jl开源软件地址:https://github.com/JuliaAttic/Markdown.jl开源编程语言:Julia 100.0%开源软件介绍:MarkdownMarkdown.parse_file("file.md")
readme("Markdown") # or any other installed package Markdown.jl is a flexible and efficient markdown parser for Julia. It supports a preliminary implementation of CommonMark as well as GitHub, IPython and Julia flavoured markdown. Note that Markdown.jl lives in Base Julia form 0.4 onwards. PRs and changes should be made over there. ## Examples You can construct Markdown by parsing it with You can also grab a package's readme with e.g. Say we have a docstring that looks like so: md"""
# Fast Fourier Transform
Base.fft(A[, dims])
Performs a multidimensional FFT of the array `A`. The optional
`dims` argument specifies an iterable subset of dimensions (e.g.
an integer, range, tuple, or array) to transform along. Most
efficient if the size of `A` along the transformed dimensions is
a product of small primes; see `nextprod()`. See also
`plan_fft()` for even greater efficiency.
A multidimensional FFT simply performs this operation along each
transformed dimension of `A`.
$(let x = [1:100]
plot(x = 1:100, y = real(fft(sin(x) + sin(2x))), Geom.line)
end)
""" In the terminal this will render like so: In Juno (pending CSS updates), like so: What's that you say? Why yes, I believe it is an interpolated Gadfly plot. Yes, it is indeed interactive. No, this probably won't actually be useful until we standardise on a plotting package in Base, but it's still pretty cool, right? Incidentally, the interpolation also potentially solves the problem of growing a non-standard Markdown implementation, since anything we need can actually be interpolated as an object with appropriate So now all we need is syntax highlighting and Mathematica-style ASCII equation rendering in the terminal and we're all set. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论