fanzheng
V2EX  ›  问与答

问两个关于Markdown的两个问题

  •  
  •   fanzheng · Jun 2, 2012 · 3528 views
    This topic created in 5147 days ago, the information mentioned may be changed or developed.
    1. 请问Smarty pants怎样用? 输入和输出例子。
    2. 怎样写图片链接 <a href="1.jpg><img src="1.jpg"></a>
    4 replies    1970-01-01 08:00:00 +08:00
    alsotang
        1
    alsotang  
       Jun 2, 2012
    1. 我google了一下Smarty pants,没搞懂是干吗的。
    2. 图片链接在markdown里面没法完成,我在使用markdown的时候,篡改了python的markdown模块,用regex为所有图片加了链接。
    fanzheng
        2
    fanzheng  
    OP
       Jun 2, 2012
    @alsotang 同样没有搞懂Smarty pants是做啥么的。
    chenluois
        3
    chenluois  
       Jun 2, 2012   ❤️ 1
    @fanzheng SmartyPants 就是自动转换标点符号的。比如你打三个点(三个字符)
    ...
    输出的 html 就将其自动传换成一个省略号(一个字符)

    对应的 html 实体
    &hellip;

    详细的看官方文档吧
    http://daringfireball.net/projects/smartypants/
    chenluois
        4
    chenluois  
       Jun 2, 2012
    html 实体在帖子中被转换了?& 加 hellip;
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4269 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 04:14 · PVG 12:14 · LAX 21:14 · JFK 00:14
    ♥ Do have faith in what you're doing.