zoukankan      html  css  js  c++  java
  • Markdown

    使用推荐的 TinyMCE 写个随笔还是有点费劲的,我写东西需要的样式并不复杂,还是Markdown吧,更快一点。所以暂停前面的GitHub学习,插一篇Markdown。

    Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).

    Thus, “Markdown” is two things: (1) a plain text formatting syntax; and (2) a software tool, written in Perl, that converts the plain text formatting to HTML.

    The overriding design goal for Markdown’s formatting syntax is to make it as readable as possible. The idea is that a Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions. While Markdown’s syntax has been influenced by several existing text-to-HTML filters, the single biggest source of inspiration for Markdown’s syntax is the format of plain text email.

    Markdown是一种轻量级的标记语言。不要被「语言」吓倒,前面还有「轻量级」做修饰。简单说,就是我们在编辑文字内容的时候加一些符号,以在浏览的时候达到部分Html的排版效果,但是比写Html要简单要快。例如达到这样的效果:

    我是 H1

    我是 H2

    • 我是无序列表项1
    • 我是无序列表项2

    用Html要这样写:

    <h1>我是 H1</h1>
    <h2>我是 H2</h2>
    <ul>
      <li>我是无序列表项1</li>
      <li>我是无序列表项2</li>
    </ul>
    

    而用Markdown只要这样写:

    # 我是 H1
    ## 我是 H2
    * 我是无序列表项1
    * 我是无序列表项2
    

    是不是很简单呢?快速写些带排版的东西还是挺不错的。

    官方介绍,英文好的看这里哦:http://daringfireball.net/projects/markdown/

    其实Markdown的具体语法我也不用在这罗列,人家作者写得清楚得很:http://daringfireball.net/projects/markdown/syntax/
    如果觉得看得不是很明白,那就结合他这篇语法文档的源文件一起看:http://daringfireball.net/projects/markdown/syntax.text/

    不过看明白了不代表能写得出,实践出真知,还是动手写写吧,找个Markdown的编辑器,很快就能上手了。

  • 相关阅读:
    Java中字符串中子串的查找共有四种方法(indexof())
    idea常用快捷键
    用hive或mr清洗app数据
    使用kafka作为生产者生产数据到hdfs(单节点)
    使用kafka作为生产者生产数据到hdfs
    c++ map的使用
    c++ set集合的使用
    c++ 木块问题
    c++ 大理石
    c 蛇形数字
  • 原文地址:https://www.cnblogs.com/qhlinhl/p/4514473.html
Copyright © 2011-2022 走看看