From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23409 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: conditional image format Date: Sun, 08 Sep 2019 22:06:27 -0700 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="154239"; mail-complaints-to="usenet@blaine.gmane.org" To: Adam Rice , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBYF327VQKGQE6YLA2UA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Sep 09 07:06:43 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pl1-f185.google.com ([209.85.214.185]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i7Bsw-000dyc-Ro for gtp-pandoc-discuss@m.gmane.org; Mon, 09 Sep 2019 07:06:43 +0200 Original-Received: by mail-pl1-f185.google.com with SMTP id t10sf7229958plr.9 for ; Sun, 08 Sep 2019 22:06:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568005601; cv=pass; d=google.com; s=arc-20160816; b=hVPNU3gpuqhnzN6RcwQZ2a6ar77gR8vsVjul3hLqprlRQZAiembU99SG5iScswBsi6 L9kowPlYdlTmWhegNpzfnsiDWrvoaQnj7xuKEbOrTBRCmDMIHRLZvApA46g64oNxxxOP PmDY6Vaid/xndp36hSt/3sHgu8p6So0iXqheloQZjW4mamGQOaFtH/0zJ7WbqSCLS5KL K0VHfEUzfQiPOFBnomCdbsgiCjnUfGpGwgcxa17ZBPVz4Yy+Caop6viP59CUPD3l3XRP UE3yC/qvtltgSLfkMTaxPqlOGKFQpyITQp1ykXOzfvZ68/FShyF5H+jokEJecZB3EIM/ 8+lg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=DwGBd0xsEr3g8rDnYyr4qGjeckpfkc6dDFV6DfC6tH4=; b=YA2Xxe5kdd43L24dF/BqB3aB/v/l+UOITR6p7QqFQ6ugmFOwIGWgKjBfvDRKollY/x pieuucnVJt0bvVJ2uybHsFMPpgyDi3AJ6UjR3blPpeHACyk0K/zg63RCUHdKb7oconoc 87i2IFXiILi2QYkJCAExbkiuzCsgmriPYjgYsNC+mWNBBrOWR41V0e75uIgE+Im9KFTx 5QF4O30uLJJE8VLIO1T7jritR5+5d9jhUe/cf8HSQAzIKb7LNIJnyFhv67G/+zeXu3tC igzBgpsQ36daDroJ3gL9q+QHoCp6ktleSpWdq072gdn3mN3fS1UXg/5NLFte9f0Yudz6 GpCA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=DtRhxw2M; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=DwGBd0xsEr3g8rDnYyr4qGjeckpfkc6dDFV6DfC6tH4=; b=HLAYqmCnqngnmnB7se5T4j2D1jP6TvP8qXygyUv54MS1R5W7t+KL1ENXnxfFLx6hr1 6tcPB4AWwKCpYizakuQldlg2N2en1d7KWnSm3QPCpHpH6AN7pXTsn7J/DzaSU0AUdSgX YUEC+/nuB6zUWpD6f9md/yOMIG13BDm6QQd83xhRc2D40ZuJ8pO/7AKnFrVYiEASgIku fW4er/I7VQ+3ZmYi0P3EzWBfGBmGnxP3DlaUCv9XV6P12XfzUg/E8VpmqvQTkzgHeZ23 H0lOUkYBFbU9yhjTSzK+dUgk7q6pDKTq0fJDBcO7hulH97sC383pzPsKlBSrm9Aq4w8U nVAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=DwGBd0xsEr3g8rDnYyr4qGjeckpfkc6dDFV6DfC6tH4=; b=LEi4+a68x35YeyTS+nJ7tMImmgUNTtrIy7UxoMHxvHBQLhbbVHFhbrKL4Z00pdr/99 1UWfgrfEMw/qcMNNd4yCkZiX8X3llBWQXLnM/BE414qdZc8vVVa3QAQUpapLTPU+fx3C VGdoyf6/Xv8sspRSWcNiM7HohD2k85kg3ES+3k1+HbcUo9fZCMTEisSlWvqxe5vqlC9V /mDG2rFEpXaAdb62DXM32AkeLKAen47/9zK/klLlcrkw3iSgm6oycEdJypA9uoqPyI1Q XpqfAExxt4DFPngnYaSAjznNqJZOoRZ/webTBWyBMUVkuXbcSfg7//VrGeirGpnCYjja 0tXQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAXPGR2D6QMnvMZZcGtaSh+BaFQwRMa+OGmXMJGcF+kO8UjjAXih mzv2F4Q5V2eIGeaelH4SOxQ= X-Google-Smtp-Source: APXvYqzz4aDKe7SsZ3xZJmoQ4Jp5Z3i7EfVMbqSs4AKGaemVdSMv2l2XR4sEMe5Un6ueIk9O3eQRsA== X-Received: by 2002:a17:902:b20c:: with SMTP id t12mr22085798plr.205.1568005601207; Sun, 08 Sep 2019 22:06:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90a:6585:: with SMTP id k5ls3196467pjj.0.canary-gmail; Sun, 08 Sep 2019 22:06:40 -0700 (PDT) X-Received: by 2002:a17:90a:1110:: with SMTP id d16mr24006148pja.29.1568005600170; Sun, 08 Sep 2019 22:06:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568005600; cv=none; d=google.com; s=arc-20160816; b=o3vANYkAeem6La/LtdF7Di68gdYZiwv4sdQZYkpCi9mxxTanp5rNOaQp2Tm81iChun omFWjgNsQ11Jhft9x16h+qRpqGIiHFgvfAaFtYqi1cry3BHzw5erRLntLLbQrX7qQ9zf W41TDEyvFmLcVywEw0tuOw6XPZwLqOyAZpSceM8AOk+GiHjqshTQ7blaE0TwkHfN00tO Xh9sc1MWjLZcYMVIIcAvfBIIYqOHceeaIAF3RYWUCDTUtnlSGIJboJPPC2g7o/sMAcl1 AUck2wJJaFMbw12gMZ3FYwyk/iJm9SldQy/NzvSZljc2em6kVwloDvyQkAb41xAwHb09 pOxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=7acd/zh9d98bauoRGGzRt/cYObVJMB80qNSEeWCT4KY=; b=XHALxxweuKTYEsqeaafLt8mkiClnvj3VUDZ1oPdFsd2Q0GFNzt0EYyfHwpg+qWNNEy aUZLVWYK3jrA12s2a7tTsBKxeq88sQDn9fkzms5OvlJxQHXaj6eekHkf7PLSrSv0VcrT 5vzH7O+5zsRBTj3xMJYp0X/9Whf9tZhcXWbjVWS8sxjJa0BUrFCWpU5mxQmzeb0ojk8W lSDHY8S61TQDaYBBO5ogoGbKlkLo8DMdlKc1M1DQ8e+inWwKJNoIrsoVsrn63GGP1QX2 tqBr2pCQHqjLEYxYANTCkEUrETwsoNdgX28VCDg1ofBz27BKCA4JRCRDrnObQRdbRHNO PilA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=DtRhxw2M; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com. [2607:f8b0:4864:20::533]) by gmr-mx.google.com with ESMTPS id j125si598071pfb.1.2019.09.08.22.06.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Sep 2019 22:06:40 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 as permitted sender) client-ip=2607:f8b0:4864:20::533; Original-Received: by mail-pg1-x533.google.com with SMTP id d10so7093666pgo.5 for ; Sun, 08 Sep 2019 22:06:40 -0700 (PDT) X-Received: by 2002:a17:90a:fa03:: with SMTP id cm3mr23064459pjb.136.1568005599873; Sun, 08 Sep 2019 22:06:39 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id d4sm2045654pfo.89.2019.09.08.22.06.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2019 22:06:39 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 4BE41A258; Mon, 9 Sep 2019 01:06:28 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=DtRhxw2M; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:23409 Archived-At: See the documentation for the raw_attribute extension: https://pandoc.org/MANUAL.html#extension-raw_attribute Only problem is that currently you can't do 'else' - but you can have different output for icml and html. Adam Rice writes: > I've got a Markdown document that I want to output to both ICML and HTML. > I've found that PDF images work better with ICML, and SVG works better with > HTML. So I'd like to do something like this in my document: > > > $if(outputformat=icml)$ > ![Some image](/assets/image1.pdf) > $else$ > ![Some image](/assets/image1.svg) > $endif$ > > > As far as I can tell, there's no way to do this, but I'm probably missing > something. > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a48963ba-047d-4488-9567-bdc8d2bd86fc%40googlegroups.com.