Giter VIP home page Giter VIP logo

markdown's Introduction

Markdown参考链接

1、关于Markdown

wiki markdown介绍

  • 介绍   Markdown 是一种轻量级标记语言,创始人为约翰·格鲁伯(John Gruber)。它允许人们“使用易读易写的纯文本格式编写文档,然后转换成有效的XHTML(或者HTML)文档”。[4]这种语言吸收了很多在电子邮件中已有的纯文本标记的特性。 Wiki: Markdown

  • 为什么使用markdown


    • 它基于纯文本,方便修改和共享;  
    • 几乎可以在所有的文本编辑器中编写;
    • 有众多编程语言的实现,以及应用的相关扩展;
    • 在 GitHub 等网站中有很好的应用;
    • 很容易转换为 HTML 文档或其他格式;
    • 适合用来编写文档、记录笔记、撰写文章。

2、基本语法

  1. 段落和换行
    段落内如何加入换行呢?

    加br或者两个空格

  2. 标题
    可以使用 # #来使用

  3. 引用

    在段落或者其他内容前使用>符号
    具体多行链接可以查看: http://itmyhome.com/markdown/article/syntax/blockquotes.html

  4. 列表
    有序列表展示

    1. 记得.开始
    2. 并且要有个空格

    无序列表

    • -可以
    • +也可以
    • *也可以
  5. 代码  

printf("hello world");
  1. 分割线



  2. 超链接

    格式 [link text](URL 'title text')

  3. 插入图片
    插入图片的语法和插入超链接的语法基本一致,只是在最前面多一个 !。

    • 插入一个原始图片
      GitHub

    • 插入一个指定大小图片<img标签

  4. 强调

    • 加粗
      怎么加粗
    • 斜体
      怎么斜体
  5. 字符转义
    反斜线(\)用于插入在 Markdown 语法中有特殊作用的字符。

    *显示一些特殊字符*

    特殊字符有:

    \ _ * {} () # + - . !

3、扩展语法

  1. 删除线
    markdownpad 做删除线无效
    要用del语法
    比如:
    我是删除线

  2. 语法高亮
    如果没有在工具中进行设置,那么没法显示语法高亮
    设置路径为:
    工具->选项->markdown->markdown处理器->github风格

	self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen] bounds]];
	[self.window makeKeyAndVisible];
	return YES;

	if (int i=0; i<100; i++)
	{
		NSLog("i=%d",i);
	}
  1. 表格
  • 单元格和表头
name age
LearnShare 12
Mike 32
  • 对齐方式
left center right
aaaa bbbbbb ccccc
a b c

4、编辑器和一些扩展介绍

编辑器介绍

5、问题

  • 目前很多markdown编辑器的一些语法不一致
  • github和 http://git.oschina.net 上传上去展示的不一致

6、工具Sublime Text3 markdown 支持

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.