• 写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

    这是这个应用的截图:

  • 相关阅读:
    Java Thread 源码
    新的篇章,新的开始,寄没有的希望于未来。
    命名的常用关键字
    通俗易懂的TCP三次握手
    Java多态
    servlet容器工作顺序
    IOC思想
    Spring MVC工作流程
    一对一,一对多,多对多
    JDBC的步骤
  • 原文地址:https://www.cnblogs.com/YouXianMing/p/3680548.html
Copyright © 2020-2023  润新知