zoukankan      html  css  js  c++  java
  • 用Markdown写博客快速入门

    Markdown,简单来说,就是一种可以方便转换为HTML的带标记符号纯文本。
    它是对我等键盘党的福音:我不用再费劲挪动鼠标去按加粗、设置段落了,用键盘输入所有文本,一气呵成。
    最重要的是,cnblogs是支持Markdown编辑器的,去“设置默认编辑器”里面设置就行了。

    引用官方说明,比如再cnblogs的Markdown编辑器里输入~

    A First Level Header
    ====================
    A Second Level Header
    ---------------------
    
    Now is the time for all good men to come to
    the aid of their country. This is just a
    regular paragraph.
    
    The quick brown fox jumped over the lazy
    dog's back.
    ### Header 3
    
    > This is a blockquote.
    > 
    > This is the second paragraph in the blockquote.
    >
    > ## This is an H2 in a blockquote
    

    然后发布后就相当于这样了...

    <h1>A First Level Header</h1>
    <h2>A Second Level Header</h2>
    <p>Now is the time for all good men to come to
    the aid of their country. This is just a
    regular paragraph.</p>
    <p>The quick brown fox jumped over the lazy
    dog's back.</p>
    <h3>Header 3</h3>
    <blockquote>
    <p>This is a blockquote.</p>
    <p>This is the second paragraph in the blockquote.</p>
    <h2>This is an H2 in a blockquote</h2>
    </blockquote>
    

    其实Markdown的应用已经很广了,比如Github的Readme,就是要求Markdown语法写的,既易读,又易写。
    其实IT界不乏类比的产品,比如简化JavaScript的CoffeeScript、NodeJS的Jade模板简化HTML等等,都是设计来把一些复杂得语法变得傻瓜化。

    更详尽的语法说明参考wowubuntu完整说明这里

  • 相关阅读:
    第二面某知科技的
    面试的提问和大致经过
    抓取菜鸟教程中python内置函数的关键字和链接
    记录下之前写的udp,tcp。很浅显
    python连接mongodb数据库操作
    生成随机字母或数字
    python连接mysql基本操作
    post登录请求
    文件的读写
    request,正则爬虫
  • 原文地址:https://www.cnblogs.com/mrkelly/p/3902564.html
Copyright © 2011-2022 走看看