V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
fanzheng
V2EX  ›  问与答

问两个关于Markdown的两个问题

  •  
  •   fanzheng · 2012-06-02 10:42:14 +08:00 · 2980 次点击
    这是一个创建于 4407 天前的主题,其中的信息可能已经有所发展或是发生改变。
    1. 请问Smarty pants怎样用? 输入和输出例子。
    2. 怎样写图片链接 <a href="1.jpg><img src="1.jpg"></a>
    4 条回复    1970-01-01 08:00:00 +08:00
    alsotang
        1
    alsotang  
       2012-06-02 19:18:57 +08:00
    1. 我google了一下Smarty pants,没搞懂是干吗的。
    2. 图片链接在markdown里面没法完成,我在使用markdown的时候,篡改了python的markdown模块,用regex为所有图片加了链接。
    fanzheng
        2
    fanzheng  
    OP
       2012-06-02 19:56:29 +08:00
    @alsotang 同样没有搞懂Smarty pants是做啥么的。
    chenluois
        3
    chenluois  
       2012-06-02 20:12:37 +08:00   ❤️ 1
    @fanzheng SmartyPants 就是自动转换标点符号的。比如你打三个点(三个字符)
    ...
    输出的 html 就将其自动传换成一个省略号(一个字符)

    对应的 html 实体
    &hellip;

    详细的看官方文档吧
    http://daringfireball.net/projects/smartypants/
    chenluois
        4
    chenluois  
       2012-06-02 20:18:44 +08:00
    html 实体在帖子中被转换了?& 加 hellip;
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5495 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 06:29 · PVG 14:29 · LAX 23:29 · JFK 02:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.