From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28694 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Liwei Ma Newsgroups: gmane.text.pandoc Subject: How to change image extension from svg to pdf? Date: Mon, 28 Jun 2021 05:56:57 -0700 (PDT) Message-ID: <350f80e8-7767-4498-acf4-6e468d66770dn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_7074_455635523.1624885017414" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13462"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDHYRAN2TAKBBGUO46DAMGQEFROHXHA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jun 28 14:57:00 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f61.google.com ([209.85.210.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lxqou-0003Lh-Nm for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 28 Jun 2021 14:57:00 +0200 Original-Received: by mail-ot1-f61.google.com with SMTP id m3-20020a9d7e830000b02904666f2bb778sf2290551otp.3 for ; Mon, 28 Jun 2021 05:57:00 -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=BKjJ0xCGQX4NB1LbqQBpBIIwX9o53z1rTlCCIf4chrM=; b=oQSjBGR38/q7pPwnX59eh9WmHTY4hWGTRE+WH5QHQU0bCvWFtcein2HtY6orHA27vC gIkLNs0/zUVKT/ygQdQOIPJzERSUKsqufGRkQjJ21kQHe3ApLs5Sg7yq17Z24hkwxWeg wX5k1Q/YJ9r6Px498YH/LaLQXeN1/ZIIejYoQPujlrZF2/2xit50bvUe4gbYE74k+wqS dPvXheaslnC7FzY+yTR9x7YkB1YInDUzxmKWitrx7senKdbDf9n4E1NydfJ9k/PKxvAE xEqSZOo/XD6SJPaGNu6Krxg9nGzsIrUP7A+I+gUOvEQyak/j4fcTLXdUie4y+mxoMYG5 wwEQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; 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=BKjJ0xCGQX4NB1LbqQBpBIIwX9o53z1rTlCCIf4chrM=; b=DYTlhpykLxMaKpxue97aSHxCxKkdoSMuQbx75q9mZqUGPtKhB/lVc14c+6MANJVaAC gOYH/f7uOBXcJXUV2USgKAwACAvSEbvWmBf47adFpsxsLqtE09+1MLcvaA/duoS7fOei qNB/kVqRmCr6dC7CS6HTFu4W6RKnu2qexyJUCgXNbm3PvDzlZskl9Jv6Vklq6zFLVlqe FQzszQ8oubqc8KkkkOp2dpEzUHuyX50DavQ8nlavPV/7x/QQL26tzkL32X74wTeB2MPI BVknUS93Rp/K4GFvhOjkeCBHZuMvgXmPAbqcNO9G5bStwGoIUvrCEA6B7vcimTrRjd9q tzRg== 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=BKjJ0xCGQX4NB1LbqQBpBIIwX9o53z1rTlCCIf4chrM=; b=EYw1NUagRfQBsnClZyRpfgiCdCZgVpvl3CO8DrggssbHFYTbCFkt+zYah88pXpKrYJ 1EeZ9OH9ZJS7slwbHAeIuMMBw2vjwC6GrGvBicLO1cD09qSVS/iCW/dCQJyTuLS9cFTy ol5w1wpQcO20tvlqzEndqFESGamlt1Kx8lA8iADBfC5Q5x5RRGn7N+b0dE8iPgvvQzUf agR+doSp3hWn2d7TIVqqXhNmb3FeydP4UySE1gxfNp9E9nJ/zM/SCjFkU/25eNfzfYXc TH3gnNM0mMwACHWewmsiXg/MQeSaMKMjEJ5Xu0ZSZ0iBLf+7VSp/7jd1bQCyb8ZVuxPm QLIQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533AZocTmAMQHq/T6mGX7ESHgD+LmzSA6JSPdqtmfRvagqu+z2xE i6WU2qh56avVN4r5xvd+b5k= X-Google-Smtp-Source: ABdhPJzjzv+EhkfT/j9oozgWHp9A9U8mgRGfej1ritxg957uz9GGKVmcRJnXvTvhLzde8jzCTgW9rA== X-Received: by 2002:aca:b5d6:: with SMTP id e205mr20208695oif.91.1624885019811; Mon, 28 Jun 2021 05:56:59 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:641:: with SMTP id 62ls6541448oig.0.gmail; Mon, 28 Jun 2021 05:56:58 -0700 (PDT) X-Received: by 2002:a54:460a:: with SMTP id p10mr20768384oip.47.1624885017971; Mon, 28 Jun 2021 05:56:57 -0700 (PDT) X-Original-Sender: liwei.ma-Re5JQEeQqe8AvxtiuMwx3w@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.io gmane.text.pandoc:28694 Archived-At: ------=_Part_7074_455635523.1624885017414 Content-Type: multipart/alternative; boundary="----=_Part_7075_476160380.1624885017414" ------=_Part_7075_476160380.1624885017414 Content-Type: text/plain; charset="UTF-8" Pandoc supports ' --default-image-extension= ' to add a custom extension to an image in markdown. While most markdown editor don't support to add a default extension to the file name and cannot render right with images that omits extension. So in an editor, one has to remain the extension such as 'file.svg' for better rendering. While in pandoc script, it is better change the '*.svg' to '*.pdf' for image files. Is there an easy way to do this? Or how to write a filter to do this? Best regards -- 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/350f80e8-7767-4498-acf4-6e468d66770dn%40googlegroups.com. ------=_Part_7075_476160380.1624885017414 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Pandoc supports ' --default-image-extension=3D = ' to add a custom extension to an image in markdown. While most markdown ed= itor don't support to add a default extension to the file name and cannot r= ender right with images that omits extension.

So in an e= ditor, one has to remain the extension such as 'file.svg' for better render= ing. While in pandoc script, it is better change the '*.svg' to '*.pdf' for= image files.

Is there an easy way to do this? Or = how to write a filter to do this?

Best regards

--
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/350f80e8-7767-4498-acf4-6e468d66770dn%40googlegroups.= com.
------=_Part_7075_476160380.1624885017414-- ------=_Part_7074_455635523.1624885017414--