From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28521 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: tip for paths that work locally and served? Date: Wed, 02 Jun 2021 10:44:26 -0600 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" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37214"; mail-complaints-to="usenet@ciao.gmane.io" To: Joseph Reagle , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB57K32CQMGQE6H2JWPI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 02 18:44:42 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f64.google.com ([209.85.161.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1loTz0-0009Ps-2w for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 02 Jun 2021 18:44:42 +0200 Original-Received: by mail-oo1-f64.google.com with SMTP id q79-20020a4a33520000b02901faafd3c603sf1813572ooq.2 for ; Wed, 02 Jun 2021 09:44:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1622652281; cv=pass; d=google.com; s=arc-20160816; b=jUlvkOcVdlRgC7F0eNDjfVFe4P7KCbTV6z5nG4sAiYGbVZnjVfPpUei74y+feP0Ixh XdrbKT8V7J/P6qDZgFf4rp3cCfL5wcFLes2w82o0YgFT4LQeqSdFvDTPBJjAer2gamYG 0rrolk3/iZdwv37voX7/67bq2EUfkLu1IFiXy/gW+QCx4Tgv6TdqgAZXEG6O/grTta7L CCzZNBIitEuTWQKAeKO7YBRfET5Opukz++Cvz+bYhSkjqHwyZnjVk9xsmYu/Zth6p5uy WlC33cjtK7/jwTYO/b3F01eJXeiKH38gVilAUTNbKcCqQdqdUdSbhqBxxbGscWEPvbTG VRQw== 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:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=+fQhTpVZralWzSDC2cBsvGSHQUCmm0xTVsgKWmRWBCs=; b=Bcdsskw2rWKSpZhII3n3RDOvLuGkGRVWzyJauRrSDfKVpTa50A5Eu6U/Hwlc6RzMNL Ym5rsLnwTTUF6eV/WpQReENxwqT1Hqj3hkKY9mFwl3hF87yajrDIb2evVxJtVjN3O0RA l30DjLAWVClqChw3c+a0YJ/EJZ6H8cmVcl8qfW9C64txODvQ+qjmYNuI5H0miGIf5akX DEhL3tPXdJ+enkInQkmempJpof0MbaCd05P3Lr+bjEvzJP3iGhN/TpCBpfMXIz/ubtWr 5/RNR4JIKeA/HUxLTO8wOuYAYQp6lWzLiOrgb8qRXVGJv2RX+gFEagJWnTIeKeg67Sat BpPA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=m26i7DNi; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102e 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:content-transfer-encoding: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=+fQhTpVZralWzSDC2cBsvGSHQUCmm0xTVsgKWmRWBCs=; b=iMUOxuK4g0DbSUGIVXXkB0B8FsCBnY3IRmqDBmmplO2Bhey8SwcpXVZUKdlPBbQLsK lXw+B1m++HtK1rYwDckGO9FNEj0ZWeYIIRF3UV314RCCaWxmsEvGKzLx9BgG62cVKBtG QVH5l+PCQpSCEmSTMtKXgeZd1ZyMxrY9bNpGB+wJzovvZkahHdp9p7q16levgbRC/hNt oKbjisZhbgjMajbFGWwT3hIepjdusQfY9ud+u/8MbJQesDlI3TPo8vDqk3M3qbkHhD7z CSoXebvtpGO0j9TTYJUEkGjV52w1zXFtIKtTA/wPfIb0hFx9TqX4LDv9emraROFWyjUW 4a1w== 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:content-transfer-encoding :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=+fQhTpVZralWzSDC2cBsvGSHQUCmm0xTVsgKWmRWBCs=; b=T0W5a9rIAYV5BlFGlrpENb9XyA37DO+/U4Fhi9btgkioVIwMRybojy+WRXXLYg9cWP s3o+n9wFlfd8yTaTBzuVZI4uD3ZbJzALFagtCK6LMnwhESqANk6T9YVoz4q6WKROWGTw nLtyX7EILg0IYCJ1jvmZ4ULudhD7aS2RthLXkkF3gv4t7mxnW9adue/ZdFrM1Uh7mVIE L1oW7p0dw8kzgB5iIu3XyOBEF9pjekKG8noB9ECgiGHnKCv1VwcRZmmPsOHchSsYJAGS OIv7vMNOD076sXwMGvrgMsUNbUfpCdp6ODBTfSfUFsCmA93c0eqAMNAAI++L1CT5xF72 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530jX48yfGp/ULr6MayRtsNVIAmvkW2Fv7mZ68TkK9+BLKWMC7Lt LPlhXsG79q3g3M8rwV8xstg= X-Google-Smtp-Source: ABdhPJxH7jYG1E/B0YjWh6HPWlU0bkxGyiRNG8YVh3Z+8cEi4+orvdqeSrqUqBZ7SY4qVyM8i/VlHA== X-Received: by 2002:a9d:4a1:: with SMTP id 30mr7320079otm.133.1622652281114; Wed, 02 Jun 2021 09:44:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:1f24:: with SMTP id e4ls134253oth.4.gmail; Wed, 02 Jun 2021 09:44:39 -0700 (PDT) X-Received: by 2002:a9d:7096:: with SMTP id l22mr27064067otj.345.1622652279551; Wed, 02 Jun 2021 09:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622652279; cv=none; d=google.com; s=arc-20160816; b=tamQbbB/THdtvd/b+vkU/JyKOYxOqZZ3mzC+ZfR8UUkqV7Tv/8G75oqKdHUdRi75BQ eXSOXh4wgngiyePiA8wTTzKFb0lb0BL8MYm6BydwkzX37rtfhZbWswztE7uzsjW9Fq9x LdxaBv1Vzun+GrbUWzSjIDwvYfSiOqVG2JnNYpC/uayt4ypBfWVlj3vHxaYOysKNnlBc wMTMBSbs32EUdHfb0KfAQZGFVpK544VLI+f1/Gg1zcyK9kabBeHOtJVjHc+HrlPqgjiO J2VSflmdBSl7pwlFTqI6zfFG0fwDY2mxt0d93OtBFKmG5frqE2runY6z0K/U0tVijURu XDlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=JTMEVsNLk4LnNZruC3prQuyDtMa6ufGmqrwfMWlXj+Q=; b=hPb5KQCc3GhxBVZLDhlqSXVbVCKXovBAPFLz33epJ5hiSy36h0BIEf4XoF+RDQpWtg BE+mC5mzZlODLShtsR5Q0WL7G33oH9KjvswTlYy8C4I459+kgQBuW6/9a6ldrqrHuV13 YO3fDgwNMUBPFbc7FiU0VBV0iTP6nQ+4oylRWftwYZn/Iet1kZrGdJ15jmkEBU5zbMZ7 SBYRVcEVaFgk4GJJXaqwOfyzWCGtpTnahgZjFTqyVz/7qer+gpHMHQgpd2H2MV5CogLn PIy+0zwmWnQ3PKYBA7y57MntI3bt+6+T9RE2WWkT+kOGUGzGacY/snZtC6VJgI+aBcOQ Tqag== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=m26i7DNi; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com. [2607:f8b0:4864:20::102e]) by gmr-mx.google.com with ESMTPS id s3si38766otd.5.2021.06.02.09.44.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Jun 2021 09:44:39 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102e as permitted sender) client-ip=2607:f8b0:4864:20::102e; Original-Received: by mail-pj1-x102e.google.com with SMTP id g6-20020a17090adac6b029015d1a9a6f1aso1858545pjx.1 for ; Wed, 02 Jun 2021 09:44:39 -0700 (PDT) X-Received: by 2002:a17:902:e20a:b029:109:ed31:ad68 with SMTP id u10-20020a170902e20ab0290109ed31ad68mr5859278plb.33.1622652278194; Wed, 02 Jun 2021 09:44:38 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id u12sm166903pfm.2.2021.06.02.09.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 09:44:37 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 85250A23E; Wed, 2 Jun 2021 12:44:26 -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=m26i7DNi; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102e 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.io gmane.text.pandoc:28521 Archived-At: It's a markdown syntax extension, so no, it doesn't affect command line options, only the body text. Joseph Reagle writes: > Thinking about this a bit more, `rebase_relative_paths` doesn't affect th= e `-c` parameter. Should it? Right now it's limited to links/images appeari= ng within the markdown files themselves, but if I were to use something lik= e: > > 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 = file parameters as a relative link and rebase them, then my issue would be = solved. > > 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.rela= tive_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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/f35add93-e541-094c-6c13-feaa5410115e%40reagle.org. --=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/m2r1hkusgl.fsf%40johnmacfarlane.net.