在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ulf/markdown2deckjs开源软件地址(OpenSource Url):https://github.com/ulf/markdown2deckjs开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):markdown2deckjsAuthor: Ulf Bögeholz Version: 0.1 | 2011/09/21 What is this?After I saw deck.js recently, I immediatelly liked the look and feel of it. What I did not like was to generate HTML slides by hand. I surfed around a bit and quickly found out that there was a nice markdown library for python. Playing around (and not sleeping instead) quickly showed results. Voila. Dependencies
Install by using Pip: How to use
Play-by-play
How do I create my slides?Every time the markdown contains a H1 or H2 (#, ##), a new slide will be created in your presentation. Basically just write your text and mix in a heading if you need a new slide.
will result in a three-slide presentation. Try it:
Downloadable filesOne problem with deck.js is that it is not easily sharable offline. So I added an option to the program which allows for creation of simple HTML files for easy distribution. No slide effects will be applied in the HTML code, as well other control elements (like tilde, see below) will be stripped.
Seems like magic. How does it work?The python markdown module offers a broad scope for writing extensions. I found a possibility to hook in an extension after the HTML element tree has already been generated from the markdown file. All I do is traverse the tree and make some minor adjustments in the element configuration. The altered HTML is then pasted into a plain deck.js template to generate the presentation. Differences to markdownI added a little feature to make slides more interactive. If your text elements end with a tilde, the char is stripped and the element is instead given the I want to extend thisFeel free! Just fork or get in touch if you like, there might be a lot of ways to make this better. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论