泰晓科技 -- 聚焦 Linux - 追本溯源,见微知著!
网站地址:http://tinylab.org
本站首次开课,25 号全部上线,加薪升职走起!
请稍侯

[ 点 我 解 锁 ]

加微信 tinylab 可申请进 Linux 技术微信群。

扫码关注 泰晓科技 并发送 ,一天后即可 永久解锁

(手机浏览时,先截图发往微信,再扫码)

Start posting with Markdown

Wu Zhangjin 创作于 2013/12/09

by falcon of TinyLab.org 2013/11/09

Background

It’s really painful to write blogs with a visual editor:

  • I want a pretty output
  • I’m not a UI designer, I don’t know how to tune the formats
  • I want to print my idea as quickly as possible

Markdown solved the above issue, it allows us to write a pretty document quickly in a very simple markup language.

Likes Latex, it can be converted to HTML, PDF and the other visual output formats, but it is simpler and easier to use.

Usage

To use it, at first, please learn Markdown Syntax or its Chinese translation: http://wowubuntu.com/markdown/ or Markdown Cheatsheet.

Then, we can write something with a plan text editor, such as gedit or vim, after editing, save the content to a file named with the ‘.md’ suffix.

To display the real output, we can convert the just saved file to the other generic formats, such as Html, ODT or PDF, in Ubuntu, the tool markdown is such a tool:

$ sudo apt-get install markdown

If want an integrated editor, we can use the tools like Retext, which allows to edit, preview and export to HTML, ODT or PDF.

$ sudo apt-get install retext

In WordPress, If want to write blogs in Markdown, a plugin named Markdown on save can be installed, it can be used like Retext.

Conclusion

With the help of the Markdown language and the Markdown on save plugin, we’re able to publish our idea more efficiently.


广而告之:本站首次开发的 Linux C 语言进阶课将于 25 号全部上线,加薪升职必备!

Read Album:

Read Latest: