zoukankan      html  css  js  c++  java
  • 写markdown用于Github上readme.md文件

    Markdown 文档地址 http://pan.baidu.com/s/1o6nu9To

    Markdown还有一系列衍生版本,用于扩展Markdown的功能(如表格、脚注、内嵌HTML等等),这些功能原初的Markdown尚不具备,同时,也能让Markdown转换成更多的格式,例如LaTeXDocbook。Markdown增强版中比较有名的有Markdown Extra、MultiMarkdown、 Maruku等。这些衍生版本要么基于工具,如Pandoc;要么基于网站,如GitHubWikipedia,在语法上基本兼容,但在换行等细节上也有改动。

    以下是本人所写的markdown文件,用于在github上开源代码的说明:

    #ListObjectOperation
    ![image](http://images.cnitblog.com/i/607542/201403/141558148063393.gif)
    
    将字典与存储在磁盘上的NSData绑定,操作字典的同时也在修改存储在磁盘上的NSData.使用简单,用来替换系统的NSUserDefaults.
    
     * easy to store dictionary to file system
     * you can use it to replace NSUserDefaults
    
    You can use like this:
    ```javascript
    // store a dictionary to file system
    [ListObjectOperation storeDictionary:@{@"name": @"YouXianMing"}
                                  toPath:simpleFilePath(@"/Library/Preferences/data")];
    
    // recover dictionary from file system and manage it
    [ListObjectOperation syncDictionaryWithDataPath:simpleFilePath(@"/Library/Preferences/data")
                                               save:YES
                                         dictionary:^(NSMutableDictionary *list) {
                                             [list setObject:@"Y.X." forKey:@"name"];
                                         }];
    
    // check the result
    [ListObjectOperation syncDictionaryWithDataPath:simpleFilePath(@"/Library/Preferences/data")
                                               save:NO
                                         dictionary:^(NSMutableDictionary *list) {
                                             NSLog(@"%@", list);
                                         }];
    ```
    Just use it for fun :).

    以下图片为显示效果:

    附录:

    提供一个工具来编辑Markdown文件 - http://mouapp.com

    这是这个应用的截图:

  • 相关阅读:
    html基础起航
    必杀技———SQL基础整理系列(一)
    JavaScript代码段整理笔记系列(一)
    与JSP的初次邂逅……
    产品第二篇
    产品第一篇
    进程在后台可靠运行的几种方法
    Vue.js模板语法
    更靠谱的横竖屏检测方法
    浮动【电梯】或【回到顶部】小插件:iElevator.js
  • 原文地址:https://www.cnblogs.com/YouXianMing/p/3680548.html
Copyright © 2011-2022 走看看