在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):chadbraunduin/markdown.bash开源软件地址(OpenSource Url):https://github.com/chadbraunduin/markdown.bash开源编程语言(OpenSource Language):Shell 100.0%开源软件介绍(OpenSource Introduction):What is it?markdown.bash is a Markdown interpreter using only traditional Unix tools. Specifically, it only uses Bash, Sed, Grep, and Cut (in one small instance). Why did I write markdown.bash?Good question. There already exist Markdown implementations in a variety of languages. Plus, the original Markdown was written in Perl which exists on virtually all Unix machines. So I didn't write it for any practical reason. Really I just wanted to see how much of it I could re-engineer in a single Bash script using mostly Sed for the transformations. How to use it?You use it just like any other Unix program - by either passing files to it or piping input into it.
What is missing / different?By my own rough estimate, markdown.bash implements about 95% of the Markdown language. Still there are some areas where it doesn't.
KudosBefore starting this project I had only a cursory understanding of Sed. I'm still not an expert, but I do know a lot more now. A couple of web resources were especially helpful. Known issuesThis script only works with GNU sed. So if you have both BSD sed and GNU sed installed (often happens on OSX), you will need to alias GNU sed. If you get the following error running this script, you will need to apply this fix.
The least intrusive way to apply this fix is to uncomment the following two lines at the top of markdown.sh.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论