From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23408 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Adam Rice Newsgroups: gmane.text.pandoc Subject: conditional image format Date: Sun, 8 Sep 2019 13:39:49 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1262_2000289088.1567975189803" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="65557"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDSNV5OC5IERBFWO2XVQKGQEJZ2STDA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Sep 08 22:39:53 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f62.google.com ([209.85.210.62]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i73yS-000GrB-V7 for gtp-pandoc-discuss@m.gmane.org; Sun, 08 Sep 2019 22:39:53 +0200 Original-Received: by mail-ot1-f62.google.com with SMTP id l1sf7372337otq.7 for ; Sun, 08 Sep 2019 13:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=KteG2t9pbLItvicN1UIzMJnvuT4LX7qOCd52HERsjlw=; b=VBQtfDEsiLKdy/qC7GZR38nEM+la17pRIIwUhtGKpe4T1wD6Z+eIH/ORuZFNxBfe+Y ekYDMox1Sa+70rNrzOj9wAkisa2Aus21+gtdH2OcHR9MrOmImhk3VzZ7WAka5JGJddnA 1lLGDnS8fqOdZvLLPTl0tOH4Qt9LjcaK0srNPlC7/NzHr8P8PocG13iYkZPSHnddZfyO 7N+L0z6XFbwcaFP+5eL+QHrclWV9GFyWJDzHkw3ZW+Wf2kpVUSTvz7bqK5rm6Nb1txzx PbKUu3NQEGk441JaC5ilnEwC89pcIpzbhhcyr1zrKH1PQ0tvBWJOG0dO2VLuyyw1zFTL h1Hg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8stars-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=KteG2t9pbLItvicN1UIzMJnvuT4LX7qOCd52HERsjlw=; b=k4vhHTB8GJPIFoKwH8A6PdOskFd7JmlZGnJMrwfwqspQCEVYs0W4BMxCKfKYBKqVLX SonNxhc4HauzCdbYDyq5pCsWSEab8TZUEBsBwiKJDS1EX1hya9pxdZ9G7ynHhm/J/kx3 aQB542X75Z/93Kk/zK7PaeY3SwTi4dmNiCC5P3XbvDNl/eOva62gpBjVgfgzpCipxCWT aipeyN/MZOKJxIl5qerLkDxphlG6tJXVnOO1CDKFCP4+V15pbEDpQmf9O/15nV3Xg5+M 3B8wNASZ9YMtf+8Ptu+94yeEVuX7/fawMfJ93EgxmG0QEYzO/Eyv2SwlGi+T4yPEX1PY WlTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=KteG2t9pbLItvicN1UIzMJnvuT4LX7qOCd52HERsjlw=; b=Kf+t+ZjCX/mLXynv5I2uZ6okVnA15SK6uYoJvZOjZu33++WqCNgmYregjxz+RZBpUN 9yAbpM2eBcpmtrir5StBJY3IpVhn1rf2iKxqtJPY2rvR9CMPYaATQ0oIdMm3AMfuB8GE m4nQgiIFES2/nhcYaRNNfnp0PVf6Dy/ZL0kdWz+qNHjtsAk09TPa3qogqvf29pMmrn2Z N/c3kg/Zx2ypMQ9bdnJBUk7zu1SmKXvEMNghKZdbpO/YjvB7zXMpDOF2mYXGi6mKaotg FMy4zCTwmBhG9Pexrpqpv4DelWd9jVPtvlkfJmo0ANpLGG7/uey5xiogAj0QkbHnocPZ aHHA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAVjVPKHF1VCdDWCYMC4xOrS4+Co5DCWgmJd1P18u9C6mmVKY1eq ZJF/lkiKCAGOriAfx/s7P9c= X-Google-Smtp-Source: APXvYqyhoqBjx+zR0uQ2bNFlubG0bRalA7ublIReRL9suepmBGLo8jF/UJE1Yqk+OPzYR+cROe4VXA== X-Received: by 2002:a9d:7101:: with SMTP id n1mr17675600otj.54.1567975191481; Sun, 08 Sep 2019 13:39:51 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:6046:: with SMTP id u67ls1896467oib.1.gmail; Sun, 08 Sep 2019 13:39:50 -0700 (PDT) X-Received: by 2002:aca:1219:: with SMTP id 25mr9254600ois.65.1567975190319; Sun, 08 Sep 2019 13:39:50 -0700 (PDT) X-Original-Sender: adamrice-75MS6taAHekdnm+yROfE0A@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:23408 Archived-At: ------=_Part_1262_2000289088.1567975189803 Content-Type: multipart/alternative; boundary="----=_Part_1263_1679546807.1567975189803" ------=_Part_1263_1679546807.1567975189803 Content-Type: text/plain; charset="UTF-8" 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. ------=_Part_1263_1679546807.1567975189803 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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, a= nd SVG works better with HTML. So I'd like to do something like this in= my document:


$if(outputformat=3Dicml)$
![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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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.co= m.
------=_Part_1263_1679546807.1567975189803-- ------=_Part_1262_2000289088.1567975189803--