From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30399 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: link-titler.hs: a script for adding titles to links in Markdown files while preserving formatting Date: Sat, 02 Apr 2022 10:55:49 -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: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39321"; mail-complaints-to="usenet@ciao.gmane.io" To: Gwern Branwen , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBKU4UKJAMGQEWO4TJMI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Apr 02 19:55:58 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f191.google.com ([209.85.215.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nahyf-000A3q-PR for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 02 Apr 2022 19:55:57 +0200 Original-Received: by mail-pg1-f191.google.com with SMTP id z10-20020a634c0a000000b0036c5eb39076sf3364435pga.18 for ; Sat, 02 Apr 2022 10:55:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1648922156; cv=pass; d=google.com; s=arc-20160816; b=CKzmM96nmTPOviMStHWfMvrt0DiJrQKZkbGv0iZn0w3HGasTbHAs2bZsgZzq1OneHT g3mn6Fnf0iSVIczx8ijAYZq8kwr/7yKw7hRDGSyhNuRZt3jiD0OkpQrMxheZoPMElr6C cuzgdrUeTMbW1XHrEQIn21aXOvy4xIkWW4EiYUA6lVDOAZMlMzQFFahKA0xfpd3Nbe5Y c2wGio4/Z0eXxuxXy8KsemdQSWYrzSLC9dwph6CwvsoygRFQl+zgytu9Al1KV5elCvyA OESDFyQcQwPPI2z82iPHLlIVlvQn6qH9EXkXGmE5GE5ecAcP8z+FhJDbkHiLuvDNLTPZ fgdQ== 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=lBegmrqo/23jvH0YmxdW4u69ZcOln4tCAL52d29dbVY=; b=SpaObBBm/oYWelboPyEQOQntRDy3KyzWHTBdb4BxxcOgsGnIwE+W4m5XTbdnKNSV6d 8qkqKrM/0n6VfRH8Yf2+jzJuXe+vCHcYSgkHAAMaQedzKFg/So7LlUFHQZpBKbdDsBWt 6m4db9EgvDnP7IN6C2+Ye9ysVE3AahNTAyM+M91X7aAAM9tno+rxJwxmtE6AQpFdhpgP 3rVvdBzNQiDITsbd1bXDD4/kt+c2WntTMR+CK6y1IPu/OOpmtqvQPwKH+xCLG62if9VL Fi5KIpCtrVVEGjpyDPRBRGMmgSsFvoll/iIbiwDgH8CPRd41KvELdshbGl8QwRcNlCZA lOWg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b="QBsIrAj/"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::542 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=20210112; 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=lBegmrqo/23jvH0YmxdW4u69ZcOln4tCAL52d29dbVY=; b=YkNkVsIKTnKzJpkAN8iYXB7vL9Rrw49OTLlYpvBF7aA1EaGB4JWdxwMfXFqXfd9uwA msz7zs4ihUHWDO/AS4HtMjoEfN58Kfb5CrWXeKpfgKVR4t492zgHcGrVo/FVh5oD9RBb uUVQELwVCK9i9Ewu/NuYwe6z987wiOhdhBy/kB+vOJN9bLvD696MyhfEwj76HDxbuVO8 w6nV6zByhhQwge9o9EwzUHnVikWLSKREalGKU2Q8DT8pB2Oxzva+D6JQFsx+kTnfD3LY hAj2dAlhuwlM9haFVpX7bHQSw5Vh6gZL8vyBX3GiBAHBOT+n/6ryWfGbP+UogMgu2Plo RqMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=lBegmrqo/23jvH0YmxdW4u69ZcOln4tCAL52d29dbVY=; b=KelxNttScwOMDXFeGEzMT7ooSU3pi5n9+TLC3yJYbzsqdcU4/MhqwMOWobH/fM/4/L KS15Cww/3DUESqlVBNWir0da01LuL/G9pOwP4XYSEqjXTALGFytna+u9+hctNbEmtFYz trYAjLZx2O3PF6wxENimHZNKM7gYEFGtNFpMsaQn5BYXgrttSsTBmbSAZ3KbdA4yZPTU oZej/KDse4kSD6aiRPg8MvA6kcGbNs9NiMS3fSsvoh4LS6KQbX/ugsXGH/5/sHNFJT0P Obc/q/t/DI9HP7KutsZ7FxVG0NBFjgisrwfWj+qaK5D+ALRWKel3XQL60eSGGf05Ge7x u5VA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533ittf8HRiqA1U46YW6ulIvZt2GqAs+PJZH96kQ+rWSmkRniymF 4wWKEwNKfdW1q1M1g62FEjc= X-Google-Smtp-Source: ABdhPJxuOqe0kWK7aBDrUyagbRxFGdSHOeZ9in78rBteXaDlI/tFXkOz9PnYMEZcbyQTHPcItNAp3g== X-Received: by 2002:a17:90a:4590:b0:1bc:4afa:1778 with SMTP id v16-20020a17090a459000b001bc4afa1778mr17954901pjg.14.1648922156467; Sat, 02 Apr 2022 10:55:56 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:903:22c1:b0:155:efc1:1565 with SMTP id y1-20020a17090322c100b00155efc11565ls5316225plg.3.gmail; Sat, 02 Apr 2022 10:55:53 -0700 (PDT) X-Received: by 2002:a17:902:ca13:b0:155:cea6:65b3 with SMTP id w19-20020a170902ca1300b00155cea665b3mr16249068pld.144.1648922153591; Sat, 02 Apr 2022 10:55:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648922153; cv=none; d=google.com; s=arc-20160816; b=YaZoBHc/2/Uj7skxq+z7+NmQJxZjYqpFf7iPWQZtorD6LzvdhT8YJIiI4WGOFQo0zp Bv4/ieaglB6a0Z7vJt2+uF3Ibv2KItWgGlHwJUjPll42HK95YpitrQAwFIxhEE7FCtwe EBVYSjBFglBCreYhQg1LEqMTtn3nCCQAjiANev12dbEQgFS93BuGiWObMgXuIaMCvSm7 C74jZ1N2XvU1oa6njMqw7oZyTAqsGWXNmU2FThmNRYGR31bEmqI76Fpf7/p9kQw59dcP ydoMDeFItgDurQaAJGC5az2JcCaCMdM+l1L1gjY0SPDa7A+B4tRNhxYFHTEbImft8awu /Yng== 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=2epENoz+4EYwe55FoykW1oa5O9buGRL/rtHD5h2j+8Q=; b=ABfuY2OIkcE1J/Qt8pa6d1sLCrb/kpEFcgZEVTrngH58NhNRZwbLNCsz0iznLbTcT8 PMGNu4ppdPE0oBoySWwofwtc3WImDnkeZpYWtYRK5WSa9UJmzYG7JjxGGAfdFumIaMtS BApbgKHni6EXJvTDf/+riLGdKA+llS1gz3Ql0nMLt/X4qzUtgKihxsb2pJGB2qRAoLaf vhRlgy0pIhAmo2Fc7o5uLB71zyWjXN0unclXvRbqeqM1KJN+0kU35w+fnPdsnLmMf4g9 J56Z2InEH2pu3T9pRiweHJjIX7ERq22BYeLwT3Z/Gf6P+9K7i28e5tINoXxqG6jq8+ed /vuA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b="QBsIrAj/"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::542 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com. [2607:f8b0:4864:20::542]) by gmr-mx.google.com with ESMTPS id l9-20020a17090270c900b0014f3d55ede2si287122plt.2.2022.04.02.10.55.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Apr 2022 10:55:53 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::542 as permitted sender) client-ip=2607:f8b0:4864:20::542; Original-Received: by mail-pg1-x542.google.com with SMTP id c2so4852409pga.10 for ; Sat, 02 Apr 2022 10:55:53 -0700 (PDT) X-Received: by 2002:a63:4e26:0:b0:386:1839:3bde with SMTP id c38-20020a634e26000000b0038618393bdemr19769057pgb.603.1648922153073; Sat, 02 Apr 2022 10:55:53 -0700 (PDT) Original-Received: from hermes.johnmacfarlane.net ([45.32.92.108]) by smtp.gmail.com with ESMTPSA id s35-20020a056a001c6300b004fb20b5d6c1sm6889161pfw.40.2022.04.02.10.55.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Apr 2022 10:55:51 -0700 (PDT) Original-Received: by hermes.johnmacfarlane.net (sSMTP sendmail emulation); Sat, 02 Apr 2022 10:55:49 -0700 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.20210112.gappssmtp.com header.s=20210112 header.b="QBsIrAj/"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::542 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:30399 Archived-At: --wrap=preserve will preserve the line wrapping from the source. That might be what you want. Gwern Branwen writes: > I dunno; I have not looked into fixing linewrapping in detail because > Pandoc will change all the other formatting like headers and rulers, > and you've made it clear in the past that Pandoc will never roundtrip > Markdown formatting, so there's no point in investigating individual > fixes - even if there is a magic option for this or that, there will > still be all the other things and you'll still want to edit at the > text rather than AST level. > > -- > gwern > https://www.gwern.net > > -- > 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/CAMwO0gxB4xeMEvTYMw9TAuJ7uX1eMNrF0xfisPCSWkRUb1BzOg%40mail.gmail.com.