开发工具 markslide

fsword · 2012年09月10日 · 最后由 fsword 回复于 2013年03月06日 · 2529 次阅读

一个小工具,用 markdown 写 slide,输出成 deck.js

https://github.com/fsword/markslide

excited...

I'm very exiting about deck.js project. But it is still hard to edit html file. I used zen-coding to save my time, but it is still indirectly. Then I found markdown. So I want to combine the two things.

I'm very excited about deck.js project. But editing html directly isn't that handy. I tried zen-coding to save some time. Still, it's not intuitive enough. Then markdown came to me. So here's these two lovely things combined.

#2 楼 @dotnil 多谢啦,我在 comment 里写了你的名字,不过 github 上你是用 dotnil 吗?

demo 有没有?

#5 楼 @search 呵呵,一共就几行代码,我 share 出来是让人根据自己需要改的,不是想做个大项目

今天有人提交了 pull request,看来以后 windows 下面可以用了

#5 楼 @search 正好在准备Git Training 材料,这个可以算个 demo 吧?

#7 楼 @fsword 用下来发现markdown 不支持 id 指定,这点不是很爽,不过研究了下貌似在redcarpet要做到还是有难度,其他还是挺满意的。

## Training Agenda {#agenda} <!--it's a markdown extension feature-->

#8 楼 @ericguo 是的,确实有些麻烦,所以现在还没有 slide 之间跳转的能力

最近写年终述职,根据自己的需要添加了一些功能——

  • 用反引号加感叹号标记 Comment,comment 缺省不显示,你可以在键盘上用字母 p 切换显示和隐藏,例如:
`!comment`

会变为

<code class="comment">comment</code>
  • 支持演示者视图。Markslide 可以生成打开两个窗口进行联动,其中一个作为“演示者视图”。

    使用时,首先在浏览器中打开 index.html。 在键盘上输入字母'q',浏览器将打开辅助显示页面(新窗口打开时可能被浏览器拦截) 辅助页面是 all.html,其中包括了所有的 comments,用户可以将两个窗口放在两个显示屏上 操作辅助页面将同时让主页面联动,反之则不会

现在的项目里面 index.md 文件被我做成 demo 了

需要 登录 后方可回复, 如果你还没有账号请 注册新账号