From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28514 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joseph Reagle Newsgroups: gmane.text.pandoc Subject: Re: tip for paths that work locally and served? Date: Tue, 1 Jun 2021 17:42:38 -0400 Message-ID: References: <70fc8d18-e32d-1468-c860-3ec9005f4a00@reagle.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35348"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.0; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD65ZAVVYEKRBU6T3KCQMGQEB4AIVRA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jun 01 23:42:46 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-vs1-f57.google.com ([209.85.217.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1loC9t-00090q-KM for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 01 Jun 2021 23:42:45 +0200 Original-Received: by mail-vs1-f57.google.com with SMTP id b24-20020a67d3980000b029022a610fc6f2sf3353288vsj.22 for ; Tue, 01 Jun 2021 14:42:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1622583764; cv=pass; d=google.com; s=arc-20160816; b=zLQYh3QzgysJRhrXJtHCmuId1jCRejqQrdIw+z6ifkl9g9J19GSrJ3NHemX/pFcm+Y 70aKKoKuVV+8InfV67QwnAnrRJVW541rnN98GE5jQI+CglHNAIpqCTd5fu5KhMgikyXF K1kpTbX7pn1LumVlbNohfnExBiuQuCTuahYBQ1LeErkvMCM5sg2O6Tv9LCja1FWxvmnf ZXgYEqQ6YOxS7YcvzhGWyWUvyqwne6nJ0j3/eKiu1v1ujyZ7iFi7YECNsKcNx7VbsOhe DOQocLpftp/eqLgA9yfWMF2FiJFaddJKMvgEwqsFMwwrWyAOhcKNzbYopVZ58lgZsZUM fFuA== 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:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:reply-to:to:from:subject:sender :dkim-signature; bh=UnsfVyNTIA8dPAh7M9KQLGTm8OC8SX+ZuSSMRXy0xL8=; b=mfDEjWYMWxudfD9nBtHU5uIRjx++SVEa4K/Tn296+dbJP7W1dmV1RiFeJKm6f+U++u x8Ri/YxCjmsWxQ00Ey1PcyL91XO3sSAbATdE6kCyYmT2DKikFsWg6eB/EgKSOfLKpEQw GV7okJukfL9BrOcJAqNfpWU73zN1N46qjv1o90kKs9p+2mqCGmN9m83Lyno4KK6yAEq2 IhDrGB/PSp60L/ElZyrkKNuXBYYVrrIzX/aXHMUXgEbZSx2GghwOFswRqG+P2x6Eu/U0 ttCpLgbkOlDPDZdNNtGoUA7DL2yY+p47b08cQh2bd3Tji1y/8feuF9gMNQ4K8mbCLqWz zaVQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@reagle.org header.s=default header.b=CAN7FUn5; spf=pass (google.com: domain of joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org designates 23.83.212.26 as permitted sender) smtp.mailfrom=joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:subject:from:to:reply-to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=UnsfVyNTIA8dPAh7M9KQLGTm8OC8SX+ZuSSMRXy0xL8=; b=iO2v3ls46ckNAIKz0ZGpxsYxA0IOMjaCsdfGVnuSwF+BfYDqfHXbAHWmCfyXcvHZxM kQoDiOGqq/sQklITyg/J4XxPTXCWFi0wSPYmotqKSDEAt62JiEjt3C9Cb4E23OAJeDIt dFA96NBk6eGmmfeih1o9P4q5HYZvwpHHp3hhCpq82CmqSGpaZW+YHb9G24ehAfhe2plk IahlwBGH6sdqNK4aHhnLXhExjY0+U3T5JVg2WxdDP53r/uiq7rrBxlzYfxw7ZBGSzPxQ FT+MTMjkS0kTsRsJvjRi4P4P+yVtyFmDvetIWf1oZgUB5dYGRXlbOeH2xD1WHvWqqKcW fBpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:subject:from:to:reply-to:references :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=UnsfVyNTIA8dPAh7M9KQLGTm8OC8SX+ZuSSMRXy0xL8=; b=dhxAsxrfjJPcKzCZsrmJH061HnXP059i8frYbJOKa46msr55F7ZsQDI0Ima+sNJPZR U5/gCeHfv57R0/ZSYCJAgoTg16+vQAIpLg8xDPqyYcmrudSIdoBnYQpm8RJksjaZOVNB Mhzl2TfB10NJUltFiQz3gjo7HjOSXtSulf0dnmPgM6jWDtlICoaW1zqOVB4TlY0WIqu1 bu4CLILICESOVGFjtISSrrhPBwbWrSFP+MPBeSAzxn8DL7IsC39rH2hgfw2kw8E3lvDm gT2YsZtbQJ+aO0XHPMSr2DsLpdaVaglU4Kfk Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533gNS2EiQnlykiR/qBNIn+96bri9+N4/ak/x3tqco59gNOiilCM 2QIOsPXjsRGfprQ7CzXjf5Q= X-Google-Smtp-Source: ABdhPJz8epJeFg0xDva7QlvvCUpxFpE/eCBcJK4INn44MXzQyS+E4o6ZnVjC7g7dwOtRPNOS979aEg== X-Received: by 2002:a67:db03:: with SMTP id z3mr20986644vsj.29.1622583764650; Tue, 01 Jun 2021 14:42:44 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6102:124b:: with SMTP id p11ls3799226vsg.8.gmail; Tue, 01 Jun 2021 14:42:42 -0700 (PDT) X-Received: by 2002:a67:c786:: with SMTP id t6mr14420639vsk.40.1622583762824; Tue, 01 Jun 2021 14:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622583762; cv=none; d=google.com; s=arc-20160816; b=eVIHMIDulcHHcVL9IPHZNaOJ8cSlPSZ43v7vmdr6bPDvnLx82yYQ7Hm73gKz/tUYg8 zF4nLdi2SN9476u4UMkxgT72zjOzu3TsKtvAkw4T43HZw2Xw15dZoumXnV9pp3zaQ48A 0XHYedpBbUeGUt8bac2f/MacYMIkK8/S0fxbnx6Hz6ws8inmGogP+ONJy0tBszRXviFT t8T33px2JRkFFhA3kOlz17vFawBYP8ZaA56V5ph/YkbXKz7G3iqSGyG2IQNVmRmVivdw 3VthlGJAO+sU6lKtgA44sEqlY16Iosb/ew1Wlz7927X+DhF6X1GnPMj2LoFIK6xtSDt0 LiFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:references:reply-to:to:from:subject :dkim-signature; bh=6uz3zik51sKC3ZdfiNNABRvKZ4sLdRmy0eM+PqJ7+T8=; b=tp1Hn2d2Fz6b8owtJY1MXlf/6P88ZIdBoIqJWlKyiS0oJpAxcUKUUqvbQv2WxkZBEb WVgxtEGydaiyS7FOmQk8XsT0H/cZ+nW2NtYxcYjSAmqReQBNwtE6ktzXr9ck1PKP9rh8 g9Z6smbZBtYz+inGZ54D9nBfuALri7ABO/hVHr5oGb1o4l+MeQT+J8/KDf/jLOFO0vlv VAOE+lSVLivLHNvorI93N6YPu5yk7C1C1RG8L2WXZvoYE47aO8CkjxgCGFn6Xx7zK5iW 4TDZvbybQjgmumLcGFtDxkG+Ffocfp3rJWZYzgwJ5iI+hf0H6Gr5zvZWcJHAtcGGgPpQ rroA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@reagle.org header.s=default header.b=CAN7FUn5; spf=pass (google.com: domain of joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org designates 23.83.212.26 as permitted sender) smtp.mailfrom=joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org Original-Received: from burlywood.elm.relay.mailchannels.net (burlywood.elm.relay.mailchannels.net. [23.83.212.26]) by gmr-mx.google.com with ESMTPS id h7si2031981uad.1.2021.06.01.14.42.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Jun 2021 14:42:42 -0700 (PDT) Received-SPF: pass (google.com: domain of joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org designates 23.83.212.26 as permitted sender) client-ip=23.83.212.26; X-Sender-Id: a2hosting|x-authuser|joseph-T1oY19WcHSwdnm+yROfE0A@public.gmane.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 19163481CFD for ; Tue, 1 Jun 2021 21:42:41 +0000 (UTC) Original-Received: from az1-ss21.a2hosting.com (100-101-162-54.trex.outbound.svc.cluster.local [100.101.162.54]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id 02408481991 for ; Tue, 1 Jun 2021 21:42:39 +0000 (UTC) X-Sender-Id: a2hosting|x-authuser|joseph-T1oY19WcHSwdnm+yROfE0A@public.gmane.org Original-Received: from az1-ss21.a2hosting.com (az1-ss21.a2hosting.com [68.66.224.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.101.162.54 (trex/6.2.1); Tue, 01 Jun 2021 21:42:40 +0000 X-MC-Relay: Junk X-MailChannels-SenderId: a2hosting|x-authuser|joseph-T1oY19WcHSwdnm+yROfE0A@public.gmane.org X-MailChannels-Auth-Id: a2hosting X-Oafish-Wide-Eyed: 03507e411f4f9ea9_1622583760849_1772794493 X-MC-Loop-Signature: 1622583760849:2810753877 X-MC-Ingress-Time: 1622583760849 Original-Received: from c-73-149-23-48.hsd1.ma.comcast.net ([73.149.23.48]:49442 helo=[192.168.0.50]) by az1-ss21.a2hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1loC9n-0002JH-3o for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Tue, 01 Jun 2021 14:42:39 -0700 In-Reply-To: <70fc8d18-e32d-1468-c860-3ec9005f4a00-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> Content-Language: en-US X-AuthUser: joseph-T1oY19WcHSwdnm+yROfE0A@public.gmane.org X-Original-Sender: joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@reagle.org header.s=default header.b=CAN7FUn5; spf=pass (google.com: domain of joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org designates 23.83.212.26 as permitted sender) smtp.mailfrom=joseph.2011-T1oY19WcHSwdnm+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.io gmane.text.pandoc:28514 Archived-At: Thinking about this a bit more, `rebase_relative_paths` doesn't affect the = `-c` parameter. Should it? Right now it's limited to links/images appearing= within the markdown files themselves, but if I were to use something like: pandoc chap*/*.md -f markdown+rebase_relative_paths -c ../styles/base.css It might be useful -- or I might expect -- the resulting link tags to be *If* that were the case, and then pandoc was willing to interpret `~` in fi= le parameters as a relative link and rebase them, then my issue would be so= lved. I'm not convinced that's a great idea, only that it is an idea. =F0=9F=98= =89 Otherwise, what I should do is modify my python build scripts to create= a custom `-c` parameter for each markdown file built using the working dir= ectory `relative_to` the location of the markdown file [1]. [1]: https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.relati= ve_to --=20 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 e= mail 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/f35add93-e541-094c-6c13-feaa5410115e%40reagle.org.