初入MarkDown

2018-05-24  本文已影响13人  谷歌派


case1 图片

![404] (https://http.cat/404)


case2 加粗、斜体、显示关键字、邮件、网址

Markdown

Emphasize

**Strong**__Strong__Command+B

邮箱:<lsiuhen.ing@gmail.com>

邮箱:lsiuhen.ing@gmail.com

百度:百度一下你就知道

404:Google一下你会知道的更多


case3 锚点连接(仿HTML)

此处为锚点链接开始

单行代码开始的地方

**多行代码区**
    /**
     * 根据房源绑定 spinner
     * <p/>
     * 区域
     */
    private void bindDataByHouseType() {

        /**
         *  拼接提示信息 不参与请求URL 参数拼接
         */
        SpinnerAreaRsBean.Data data = new SpinnerAreaRsBean.Data();
        data.setAdcode("0");
        data.setName("区域");
        spinnerAreaRsBean.getData().add(0, data);
        mTip_spinner.attachDataSource(spinnerAreaRsBean.getData());
    }

锚点链接结束:对应上方设置的锚点链接

This there anchor link


case4 列表


case5 文字引用

Angle brackets > are used for block quotes.
Technically not every line needs to start with a > as long as
Looks kinda ugly though.

Block quotes can be nested.

Multiple Levels

Most markdown syntaxes work inside block quotes.

  • Lists
  • [Links][arbitrary_id]
  • Etc.

case 6 代码块

/**
     * 根据房源绑定 spinner
     * <p/>
     * 区域
     */
    private void bindDataByHouseType() {

        /**
         *  拼接提示信息 不参与请求URL 参数拼接
         */
        SpinnerAreaRsBean.Data data = new SpinnerAreaRsBean.Data();
        data.setAdcode("0");
        data.setName("区域");
        spinnerAreaRsBean.getData().add(0, data);
        mTip_spinner.attachDataSource(spinnerAreaRsBean.getData());
    }
    print('至少缩进四个空格或一个标签,也可以显示一个代码块。')

case 7 Table 表格

First Header Second Header
Content Cell Content Cell
Content Cell Content Cell
Table (1)
Left Aligned Center Aligned Right Aligned
col 3 is some wordy textdsfsdfsf $1300
col 2 is center $13
stripes center $163 print('hellowold')
stripes center $163
Table (2)
Option name Markup Result if enabled
Intra-word emphasis So A*maz*ing So A<em>maz</em>ing
Strikethrough ~~Much wow~~ <del>Much wow</del>
Underline [^under] _So doge_ <u>So doge</u>
Quote [^quote] "Such editor" <q>Such editor</q>
Highlight ==So good== <mark>So good</mark>
Superscript hoge^(fuga) hogefuga
Autolink http://t.co http://t.co
Footnotes [^4] and [^4]: [^4] and footnote 4
上一篇 下一篇

猜你喜欢

热点阅读