美文网首页读书积累
简书Markdown用法

简书Markdown用法

作者: 好记性不如烂Bettle | 来源:发表于2018-01-30 15:34 被阅读13次

插入链接

百度

插入图片

[图片上传失败...(image-4d4f11-1517297643597)]

引用

/**
* Set the top and bottom offset for this {@link ViewOffsetHelper}'s view.
*
* @param offset the offset in px.
* @return true if the offset has changed
*/
public boolean setTopAndBottomOffset(int offset) {
if (mOffsetTop != offset) {
mOffsetTop = offset;
updateOffsets();
return true;
}
return false;
}

粗体

哈哈哈哈

斜体

呵呵呵呵

代码的引用

单行代码的引用

public boolean setTopAndBottomOffset(int offset) {

多行代码的引用
 private void updateOffsets() {
        ViewCompat.offsetTopAndBottom(mView, mOffsetTop - (mView.getTop() - mLayoutTop));
        ViewCompat.offsetLeftAndRight(mView, mOffsetLeft - (mView.getLeft() - mLayoutLeft));
    }

表格

左对齐 居中 右对齐
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1
dog bird cat
foo foo foo
bar bar bar
baz baz baz

MarkDown详细使用方法

详细使用方法

注:以上文档的代码,可直接拷贝使用

###插入链接
[百度](https://www.baidu.com/)
###插入图片
![](https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1517306012947&di=c3a025fec05efa63958b8b5f4ce129e1&imgtype=0&src=http%3A%2F%2Fimgsrc.baidu.com%2Fimgad%2Fpic%2Fitem%2Fcdbf6c81800a19d8a1af34d139fa828ba71e46b1.jpg)
###引用
>   /**
     * Set the top and bottom offset for this {@link ViewOffsetHelper}'s view.
     *
     * @param offset the offset in px.
     * @return true if the offset has changed
     */
    public boolean setTopAndBottomOffset(int offset) {
        if (mOffsetTop != offset) {
            mOffsetTop = offset;
            updateOffsets();
            return true;
        }
        return false;
    }
###粗体
**哈哈哈哈**
###斜体
*呵呵呵呵*
###代码的引用
#####单行代码的引用
 `  public boolean setTopAndBottomOffset(int offset) {    `
#####多行代码的引用(注:用的时候去掉括号)
(```
 private void updateOffsets() {
        ViewCompat.offsetTopAndBottom(mView, mOffsetTop - (mView.getTop() - mLayoutTop));
        ViewCompat.offsetLeftAndRight(mView, mOffsetLeft - (mView.getLeft() - mLayoutLeft));
    }
```)

###表格
| 左对齐| 居中| 右对齐|
| -------- |:------:| -------:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

dog | bird | cat
----|------|----
foo | foo  | foo
bar | bar  | bar
baz | baz  | baz

相关文章

  • 学会使用MarkDown写笔记

    前言 简书使用MarkDown语言进行写作,MarkDown语言的主要用法涉及到字符的使用,用法小结如下(看到有一...

  • 简书Markdown用法

    插入链接 百度 插入图片 [图片上传失败...(image-4d4f11-1517297643597)] 引用 /...

  • 简书Markdown用法

    需要注意的是,如果之前在简书上的文章是用富文本写的,想要改成Markdown是无法实现的。还有就是,Markdow...

  • 简书 markdown 用法

    1、表格 表格显示 第一列第二列第三列第一行AB第二行12第三行ab markown 原生表格写法: 2、修改文字...

  • 简书的使用

    ** 简书的排版历来为大家称赞,主要归功与Markdown,下面我们就来学习一下Markdown的用法 ** 1 ...

  • 简书Markdown用法整理

    Markdown编辑器,对照着正常的版本,把缺失的部分加上去!!1.斜体:斜体斜体 2.加粗:加粗加粗 3.斜体加...

  • 简书MarkDown用法汇总

    题注:简书使用的github上的markdown语言,简单易学易用,工欲善其事必先利其器,本篇主要记录MarkDo...

  • 简书Markdown基本用法

  • 简书 MarkDown 编码用法

    一级标题 (#)文本(括号去掉) 二级标题 (##)文本 三级标题 (###)文本 四级标题 (####)文本 五...

  • MarkDown

    简书Markdown用法 一级标题 二级标题 两个空格 引用连接 The traversal sequence g...

网友评论

    本文标题:简书Markdown用法

    本文链接:https://www.haomeiwen.com/subject/kdrczxtx.html