Markdown and Typora Intro

Markdown and Typora Intro

Typora is a software for Mac to support the markdown.

Readable & Writeable

Typora will give you a seamless experience as both a reader and a writer. It removes the preview window, mode switcher, syntax symbols of markdown source code, and all other unnecessary distractions. Replace them with a real live preview feature to help you concentrate the content itself.

  • Distractions Free

  • Seamless Live Preview

  • What You See Is What You Get

    ?

Simple, yet Powerful


Images

  1. Using markdown syntax to insert images into your content.

    ![](url|local path)
    

    For instance,

    ![winter](https://typora.io/img/new/image.png)
    
    winter
    winter
  2. Using shortcut cmd + option + i to insert snappet into your content

Headers

Markdown had defined 5 different size about headers.

  • One-level header

    1. Markdown syntax

       # One level header
      

      One level header

    2. Press cmd + 1 , then input your header.

  • Secondary-level header

    1. Markdown syntax

      ## secondary level header
      

      Secondary level header

    2. Press cmd + 2 , then input your header.

  • Third-level header

    1. Markdown syntax

      ### Third level header
      

      Third level header

    2. Press cmd + 3 , then input your header.

  • Forth-level header

    1. Markdown syntax

      #### Forth level header
      

      Forth level header

    2. Press cmd + 4, then input your header.

  • Fifth-level header

    1. Markdown syntax

      ##### Fifth level header
      
      Fifth level header
    2. Press cmd + 5, then input your header.

Lists

Markdown defineded Unordered List,Ordered List,Task List, those lists basiclly fullfill our needs.

Unordered List

Markdown syntax or using shortcut to insert unordererd list into your content.

- Apple
- Mango
- Banana

Or, Press cmd + option + u in Typora.

  • Apple
  • Mango
  • Banana

And you could arrange nested lists like a rich editor, by tab and shift + tab key, here the nested unordered list.

- Animal
  - Monkey
  - Horse
  - Tiger
  
- Bird
  - parrot
  - sparrow
  • Animal
    • Monkey
    • Horse
    • Tiger
  • Bird
    • parrot
    • sparrow

Ordered List

Markdown syntax of the ordered list is the simplest, but notice the indentation,

1. Apple
2. Mango
3. Banana
  1. Apple
  2. Mango
  3. Banana

Or, press cmd + option + o in Typora.

Task list

GFM task list supported. Able to manage simple todos in a markdown file.

- [x] Python
- [ ] C#
- [ ] Java
- [ ] Javascript
- [ ] C
- [ ] SQL

Or, press cmd + option + x to insert task list in Typora.

  • [x] Python
  • [ ] C#
  • [ ] Java
  • [ ] Javascript
  • [ ] C
  • [ ] SQL

Cool, huh ??

Tables

At first, it give me a suprise that markdown support tables, but when i start to using it, I've got to say it's amazing , really helps me a lot.

For instance, I create a table below.

Name Age Club
Ronaldo 32 Real Madrid
Messi 31 Barcelona

The markdown code goes like this,

| Name    | Age  | Club        |
| :------ | ---- | ----------- |
| Ronaldo | 32   | Real Madrid |
| Messi   | 31   | Barcelona   |

Seems a little complated, if you do it manully, but in Typora , you could just press cmd + T to popup a window to choose how many columns and rows you need, the best part is you can adjust the row counts and columns counts while you fulfill the value in table.

Code Fences

Code changes world, Steve Jobs used to claim that everyone should learn to program.

Markdown support nearlly all the popular programming language you can find in the world, and highlight the code at wonderful way.

Here's some explams:

  • C#

    // A Hello World! program in C#.
    using System;
    namespace HelloWorld
    {
        class Hello 
        {
            static void Main() 
            {
                Console.WriteLine("Hello World!");
    
                // Keep the console window open in debug mode.
                Console.WriteLine("Press any key to exit.");
                Console.ReadKey();
            }
        }
    }
    
  • Java

    /******************************************************************************
     *  Compilation:  javac HelloWorld.java
     *  Execution:    java HelloWorld
     *
     *  Prints "Hello, World". By tradition, this is everyone's first program.
     *
     *  % java HelloWorld
     *  Hello, World
     *
     *  These 17 lines of text are comments. They are not part of the program;
     *  they serve to remind us about its properties. The first two lines tell
     *  us what to type to compile and test the program. The next line describes
     *  the purpose of the program. The next few lines give a sample execution
     *  of the program and the resulting output. We will always include such 
     *  lines in our programs and encourage you to do the same.
     *
     ******************************************************************************/
    
    public class HelloWorld {
    
        public static void main(String[] args) {
            // Prints "Hello, World" to the terminal window.
            System.out.println("Hello, World");
        }
    
    }
    
  • Javascript

    function fn(s){
        console.log(s)
    }
    fn('Hello World')
    

    ?

  • Python

def fn(s:str)->str:
  print(str)
fn('Hello World')  

And So on, now, let me show you how the markdown syntax do the magic.

 ```python
 def fn(s:str)->str:
   print(str)
 fn('Hello World')  

Using ``` language name ``` will do the trick!

Or, if you are using Typora , you could just press cmd + alt + c to insert the code fances.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末耘柱,一起剝皮案震驚了整個濱河市调煎,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌悲关,老刑警劉巖娄柳,帶你破解...
    沈念sama閱讀 212,718評論 6 492
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件赤拒,死亡現(xiàn)場離奇詭異诱鞠,居然都是意外死亡航夺,警方通過查閱死者的電腦和手機(jī)崔涂,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,683評論 3 385
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來锚烦,“玉大人帝雇,你說我怎么就攤上這事〕骨祝” “怎么了吮廉?”我有些...
    開封第一講書人閱讀 158,207評論 0 348
  • 文/不壞的土叔 我叫張陵宙址,是天一觀的道長。 經(jīng)常有香客問我抡砂,道長注益,這世上最難降的妖魔是什么溯捆? 我笑而不...
    開封第一講書人閱讀 56,755評論 1 284
  • 正文 為了忘掉前任,我火速辦了婚禮啤月,結(jié)果婚禮上顽冶,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好贸人,可當(dāng)我...
    茶點(diǎn)故事閱讀 65,862評論 6 386
  • 文/花漫 我一把揭開白布倘要。 她就那樣靜靜地躺著十拣,像睡著了一般夭问。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上缰趋,一...
    開封第一講書人閱讀 50,050評論 1 291
  • 那天味抖,我揣著相機(jī)與錄音,去河邊找鬼仔涩。 笑死红柱,一個胖子當(dāng)著我的面吹牛蓖乘,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播嘉抒,決...
    沈念sama閱讀 39,136評論 3 410
  • 文/蒼蘭香墨 我猛地睜開眼些侍,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了岗宣?” 一聲冷哼從身側(cè)響起耗式,我...
    開封第一講書人閱讀 37,882評論 0 268
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎儡司,沒想到半個月后余指,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體酵镜,經(jīng)...
    沈念sama閱讀 44,330評論 1 303
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡淮韭,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,651評論 2 327
  • 正文 我和宋清朗相戀三年垢粮,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片缸濒。...
    茶點(diǎn)故事閱讀 38,789評論 1 341
  • 序言:一個原本活蹦亂跳的男人離奇死亡足丢,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出庇配,到底是詐尸還是另有隱情斩跌,我是刑警寧澤,帶...
    沈念sama閱讀 34,477評論 4 333
  • 正文 年R本政府宣布捞慌,位于F島的核電站耀鸦,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏啸澡。R本人自食惡果不足惜袖订,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 40,135評論 3 317
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望嗅虏。 院中可真熱鬧洛姑,春花似錦、人聲如沸硫眯。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,864評論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽刁岸。三九已至,卻和暖如春番舆,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背禾怠。 一陣腳步聲響...
    開封第一講書人閱讀 32,099評論 1 267
  • 我被黑心中介騙來泰國打工雷逆, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留往产,地道東北人仿村。 一個月前我還...
    沈念sama閱讀 46,598評論 2 362
  • 正文 我出身青樓压真,卻偏偏與公主長得像,于是被迫代替她去往敵國和親泼差。 傳聞我的和親對象是個殘疾皇子堆缘,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 43,697評論 2 351

推薦閱讀更多精彩內(nèi)容

  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的閱讀 13,447評論 5 6
  • 文/圖 自然哥 沏一壺茶 與時光對飲 交錯在 絲綹間的 光陰 緩緩蔓開 慢慢酌 細(xì)細(xì)思 淡淡的想 有的事 不想忘...
    遇見自然閱讀 504評論 1 8
  • 有人總結(jié)說,第一孩子照著書養(yǎng)极舔,第二個孩子當(dāng)豬養(yǎng)。我們家小朋友著實(shí)是按照書養(yǎng)的,從懷孕到現(xiàn)在肥卡,關(guān)于育兒的書已經(jīng)不知道...
    康愉子閱讀 259評論 0 0
  • 我的故鄉(xiāng)是一個小鎮(zhèn)氛琢,一個安靜的小鎮(zhèn)骚勘。 提到小鎮(zhèn)当宴,大多數(shù)人腦海里浮現(xiàn)的應(yīng)該是南方的水鄉(xiāng):碧綠的河水緩緩流淌,微風(fēng)吹過...
    王美好吶閱讀 672評論 0 2
  • 天空漸漸拉下了簾幕,但街上的一切卻繁華了起來驱证。于是,我走出了家門荠藤,離開了公寓來到街上去走走。現(xiàn)在只有我一個人淤井,只有...
    幽人Nara閱讀 445評論 0 1