fanzheng
V2EX  ›  问与答

问两个关于Markdown的两个问题

  •  
  •   fanzheng · Jun 2, 2012 · 3754 views
    This topic created in 5275 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
    alsotang
    Jun 2, 2012
    1
    1. 我google了一下Smarty pants,没搞懂是干吗的。
    2. 图片链接在markdown里面没法完成,我在使用markdown的时候,篡改了python的markdown模块,用regex为所有图片加了链接。
    fanzheng
    fanzheng
    OP
    Jun 2, 2012
    2
    @alsotang 同样没有搞懂Smarty pants是做啥么的。
    chenluois
    chenluois
    Jun 2, 2012❤️1
    3
    @fanzheng SmartyPants 就是自动转换标点符号的。比如你打三个点(三个字符)
    ...
    输出的 html 就将其自动传换成一个省略号(一个字符)
    …
    对应的 html 实体
    &hellip;

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