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

Google charts的js代码在markdown里面解析

  •  
  •   brucebot · 2012-10-14 19:26:17 +08:00 · 3277 次点击
    这是一个创建于 4217 天前的主题,其中的信息可能已经有所发展或是发生改变。
    hey,

    我想用google chart生成图表,并且希望将这图表能够嵌入我的文章中,文章是用markdown在jekyll里面写的,google搜索了下都是javascript解析markdown的。
    3 条回复    1970-01-01 08:00:00 +08:00
    thcode
        1
    thcode  
       2012-10-14 19:29:49 +08:00   ❤️ 1
    Markdown 中可以插入 HTML 代码,把 Google Chart 的代码作为 HTML 应该可以吧。
    brucebot
        2
    brucebot  
    OP
       2012-10-14 19:45:53 +08:00
    @thcode 不行的,jekyll解析后会加一些标识进去的
    see http://brucebot.com/pages/robot-sales-and-operation-stock-chart-2011.html
    brucebot
        3
    brucebot  
    OP
       2012-10-14 19:49:41 +08:00
    @thcode 可以了,是我没有删除中间的一些空格
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2117 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 10:41 · PVG 18:41 · LAX 03:41 · JFK 06:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.