每天推薦一個 GitHub 優質開源項目和一篇精選英文科技或編程文章原文,歡迎關注開源日報。交流QQ群:202790710;微博:https://weibo.com/openingsource;電報群 https://t.me/OpeningSourceOrg


今日推薦開源項目:《動畫 JS 庫  Popmotion》GitHub鏈接

推薦理由:Popmotion 是一個功能強大的反應式 JavaScript 運動庫,它可以允許我們根據用戶進行的不同操作來產生不同的動畫,並且還支持自定義其中的補間動畫。它不需要特別的依賴,在各種框架中都能夠使用


今日推薦英文原文:《4 Markdown-powered slide generators》作者:

原文鏈接:https://opensource.com/article/18/5/markdown-slide-generators

推薦理由:這篇文章介紹了能夠將Markdown與幻燈片結合的工具,這些工具可以將Markdown格式的文件轉化為PDF或者HTML格式的幻燈片,有些還使用雙窗格來做到一邊寫Markdown一邊生成幻燈片預覽,對於習慣了Markdown的朋友們來說,這些工具興許能幫他們省下做個新幻燈片的時間了

4 Markdown-powered slide generators

Imagine you've been tapped to give a presentation. As you're preparing your talk, you think, "I should whip up a few slides."

Maybe you prefer the simplicity of plain text, or maybe you think software like LibreOffice Writer is overkill for what you need to do. Or perhaps you just want to embrace your inner geek.

It's easy to turn files formatted with Markdown into attractive presentation slides. Here are four tools that can do help you do the job.

Landslide

One of the more flexible applications on this list, Landslide is a command-line application that takes files formatted with Markdown, reStructuredText, or Textile and converts them into an HTML file based on Google』s HTML5 slides template.

All you need to do is write up your slides with Markdown, crack open a terminal window, and run the command landslide followed by the name of the file. Landslide will spit out presentation.html, which you can open in any web browser. Simple, isn』t it?

Don't let that simplicity fool you. Landslide offers more than a few useful features, such as the ability to add notes and create configuration files for your slides. Why would you want to do that? According to Landslide's developer, it helps with aggregating and reusing source directories across presentations.

landslide.png

Viewing presenter notes in a Landslide presentation

Marp

Marp is a work in progress, but it shows promise. Short for "Markdown Presentation Writer," Marp is an Electron app in which you craft slides using a simple two-pane editor: Write in Markdown in the left pane and you get a preview in the right pane.

Marp supports GitHub Flavored Markdown. If you need a quick tutorial on using GitHub Flavored Markdown to write slides, check out the sample presentation. It's a bit more flexible than baseline Markdown.

While Marp comes with only two very basic themes, you can add background images to your slides, resize them, and include math. On the down side, it currently lets you export your slides only as PDF files. To be honest, I wonder why HTML export wasn』t a feature from day one.

marp.png

Editing some simple slides in Marp

Pandoc

You probably know pandoc as a magic wand for converting between various markup languages. What you might not know is that pandoc can take a file formatted with Markdown and create attractive HTML slides that work with the Slidy, Slideous, DZSlides, S5, and Reveal.js presentation frameworks. If you prefer LaTeX, you can also output PDF slides using the Beamer package.

You'll need to use specific formatting for your slides, but you can add some variables to control how they behave. You can also change the look and feel of your slides, add pauses between slides, and include speaker notes.

Of course, you must have the supporting files for your preferred presentation framework installed on your computer. Pandoc spits out only the raw slide file.

pandoc.png

Viewing slides created with Pandoc and DZSlides

Hacker Slides

Hacker Slides is an application for Sandstorm and Sandstorm Oasis that mates Markdown and the Reveal.js slide framework. The slides are simple, but they can be visually striking.

Craft your slide deck in a two-pane editor in your browser—type in Markdown on the left and see it rendered on the right. When you're ready to present, you can do it from within Sandstorm or get a link that you can share with others to present remotely.

What』s that—you say that you don』t use Sandstorm or Sandstorm Oasis? No worries.There's a version of Hacker Slides that you can run on your desktop or server.

hacker-slides.png

Editing slides in Hacker Slides

Two honorable mentions

If you use Jupyter Notebooks (see community moderator Don Watkins' article) to publish data or instructional texts, then Jupyter2slides is for you. It works with Reveal.js to convert a notebook into a nice set of HTML slides.

If you prefer your applications hosted, test-drive GitPitch. It works with GitHub, GitLab, and Bitbucket. Just push the source files for your slides to a repository on one of those services, point GitPitch to that repository, and your slides are ready to view at the GitPitch site.


每天推薦一個 GitHub 優質開源項目和一篇精選英文科技或編程文章原文,歡迎關注開源日報。交流QQ群:202790710;微博:https://weibo.com/openingsource;電報群 https://t.me/OpeningSourceOrg