From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29982 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Output-Format Plain removes Markdown-Hyperlinks []() Date: Sat, 15 Jan 2022 15:41:43 +0100 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20898"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBKV2ROHQMGQE2J56VYY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Jan 15 15:41:48 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f62.google.com ([209.85.167.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n8kFY-0005Ft-J6 for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 15 Jan 2022 15:41:48 +0100 Original-Received: by mail-lf1-f62.google.com with SMTP id q14-20020ac2514e000000b0042d99ba0e3esf7955215lfd.20 for ; Sat, 15 Jan 2022 06:41:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1642257708; cv=pass; d=google.com; s=arc-20160816; b=Qd0hou430mhFSF3hq14KdsmuZamx+vaMZ1aESoUPyKhr45Te/Uz0Z6RsvXBnMQ9GT/ RUq92I1NCkjcce8Ys+04rHX8Br5R207JMBK2+vWHZ2nCKOoQ/53C5Zj1yb+F72RLdIJU 6Jm0Hob0ugN+wqpQSmNHzM/0gUThfS60Zv35zRJU76SLAshfJbMFFHQ6mqubdvfnV0Qz sizVV9pWiamIOp48WpQfYELD3pPGMryTKB4Kl+WHd5YaQkhy6FIT1DR4sBb4DRSoa3rT H8JYx6P8jXEisEZ7/tglIu2Zt9Ht5GTtW6a5To5DNuDxPBz29Vgk77119Xn3wssn2tv4 +oHg== 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-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:sender:dkim-signature:dkim-signature; bh=93OwFntkGzVxtvY04z4BCNP8/jYzHqiXtMYqnzINdLw=; b=cNIkiHb8qU8jGfOQrIfX0hun6pB5lSHNsn6UoG6AqbsKkSP/ljLjhDYpoa0wR2uqxl 3JvpNFiyDZ5M+WUt7+j24K39NwgE3g4WWydn1P9W7HX/+tGLbOQ5P4UnzSrVXN12U9Ds m7P6VY9O5LQHiRRmELAelh11efm4u50+mm0nUz6ZRc3V477HazIUgucPO0dea6LNDIOv o0KTq/ygSbpy8U8M6/DpGvBVcZas/YnGNt3PU5wQnFZX3Ms//NHuERva/b9a7tAGmnGL 6EbVcSmDmdnmvMT45gqJ/BShdY6xtruJA/926aAqtAcz0/AdtQ1rz6mKzgBnrUq75P+S twqA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Yr/Ajnbj"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::130 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language: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=93OwFntkGzVxtvY04z4BCNP8/jYzHqiXtMYqnzINdLw=; b=IGhtLn7mJgUCSdBz/22418c89jt6C89PKhR0ahCmXWy3afaUPvcxvcMGDYbM7kwJps tAk6yNmM/pCjdpmrEMd2xudvyWVsZwTYC6/OOeS/4PaOepolbO8tk1L7VOubeKbBy+3s 4zq3axpntPGjn+9NdC3qbw2SMWAmmWb/TTM11MpmwGrDU1hTuLqthcPTfyGXmWMJPt3+ C2+LtEYnKrVNaIrGl7T0zpdU++vB3T5PeSKl8x11/GtRHhC4vytUSrQqZn7dfsjn8AQi Xwp3wEYlUnZZBwJPzKkEFagv6lXMNohVJ4N3MuZsgiPIR+T5lSX81GYM07v/5jSjriVO ZFRg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language: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=93OwFntkGzVxtvY04z4BCNP8/jYzHqiXtMYqnzINdLw=; b=OR7wjvbz9gdoyW41Y+uGpvOWgbKSEs6DP5n0uiB0j28JnCJpBNzeiYr/9mvWPxLyEV zHfjfGrvTrPBiZzqdoSf815uGHqrlNvhZCAYwO8kvq7GzVuQXTtJdBzRJE9iMATY94aw R1bxrasR0n6cagE8hqIECNjRpxSP7BUS0tuZ7bhyfKr7WkUyrnqswWff98A+GqTz8mQV lUhftK85AjiWK3czVXUoVCMjMxhcbKXi7OpbXUaizWI691Dbl22ZdP0CMDo0+ACe4djW YLLcWfBYyAca89op4HwiLckpV0EUhIaQlcHOwR3fe7krz24LqJfSDkm8x3sqv5OkH1rT AA3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :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=93OwFntkGzVxtvY04z4BCNP8/jYzHqiXtMYqnzINdLw=; b=WJxRzrC/BsUjqL5D2j0oU75asgtTejYy4OjMnFzI+rfBQQS4VyMFJOG+raambg+RNd NknIT6ZnbzoEsvVS1SGKGgv5HDcsgny+xvHnStGzp+hGUvZV2XKWksY/4wQlKiwQl0+E KF0cTY32ungCYUDrHIidYsYkvlqK+dQFVMtH2WQFqobU83UowtgcGoGnaqrWaw3VCfF0 bPsVRU0gCUgRwbyYw++6o0NVy2Tr7S8dUgu+EeLWCcld9li0reDK5nxoMSP+gqgxCQ4L eHt5QsYoVdis4FhAWZifjbDBzc4e0FTxbzQgTcFY4+g0NxflL9MNHTm7AKmITVHeSDDf Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533xHXdxmfuklxDzsHZJwKKGEJ3MR2xS1U2QnRbcLcZBP4Rq4F7r Mx0GR4YkCFI1O9iYw80naJs= X-Google-Smtp-Source: ABdhPJz5JAKzej/e0Ba1JeldR4wpd/+O7iLKD/NXonY5LQUjudnHUVWEt+sgUdkFh2dRnmH8AQA7yw== X-Received: by 2002:a05:6512:39d5:: with SMTP id k21mr7700001lfu.474.1642257707925; Sat, 15 Jan 2022 06:41:47 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:651c:17aa:: with SMTP id bn42ls1475126ljb.10.gmail; Sat, 15 Jan 2022 06:41:45 -0800 (PST) X-Received: by 2002:a2e:9bc6:: with SMTP id w6mr7221691ljj.203.1642257705365; Sat, 15 Jan 2022 06:41:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642257705; cv=none; d=google.com; s=arc-20160816; b=pdaPA7iRbAt7tdss8EBRMG/i0VNNlFY6R9/4VyGLbCr9MHmIf1rw4mG1VEz/WaIAbH WIuuK0iJaZ3C6v40X+GLMKy6SmusGfq1nhST8igQEK4A5y0XCOVfEfPOy4gJL3Nju3jz LvIaysd7joKiMqw/S0sJqJM8YxWzbjxzNZ8C+ptewvEzrl4q6mwxwVo76Vk5bzyQM9w1 CEPBFmoMQH7vA258vckVJuiTse9RNPwCYLvcTELBEOVZ5ATpl9u1chliqmCpB9pYFP98 6IcLgkaiPcygr0TcEMhnlo+KF+t8FnBfouXK+SKDOU/QC6MDNQcWGM9D40NQeqI+w9+y 8NVQ== 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:from:references:to:subject :dkim-signature; bh=8BcNBXglhcJHz2oyu/tVqDNvo6V8OhRUzw+PKWH6mwo=; b=If8H78W2KNhhrjSGwPLKlxPaNTMUJi2ZjdG4gDIve6y2Rsz316tnukd588DJs2zmoM dE1pRYkmCXm/UiMFBpOA66FrH4Qjc+CpEJY6fAiKvdpSeShB6duk5h6+BphiG7HC9D8t nW7vAlS1SZIjLgpk/UUfDS2UmqRC4+jIbvKFKaZoR8kPXgT/dopVMA1bRWz0rTHNz+Ca /y/7gTvm1m4mOWQG90LyWeBn0uh8pQZJMCBbH+zJyUbDZrAyCm3Ub6ZebIXVUn8XQ0CQ bF5dclXMM8K0GPmiX5ZT1X+/ZoWnGawvmXKRt4s8Q85rhK3k3/kFhmX4o5kS2gL0ANF7 TD0w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Yr/Ajnbj"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::130 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com. [2a00:1450:4864:20::130]) by gmr-mx.google.com with ESMTPS id bx12si417695ljb.2.2022.01.15.06.41.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 Jan 2022 06:41:45 -0800 (PST) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::130 as permitted sender) client-ip=2a00:1450:4864:20::130; Original-Received: by mail-lf1-x130.google.com with SMTP id p27so28547855lfa.1 for ; Sat, 15 Jan 2022 06:41:45 -0800 (PST) X-Received: by 2002:a05:6512:b8a:: with SMTP id b10mr10690466lfv.156.1642257705059; Sat, 15 Jan 2022 06:41:45 -0800 (PST) Original-Received: from [192.168.1.122] (user122.77-105-231.netatonce.net. [77.105.231.122]) by smtp.gmail.com with ESMTPSA id m13sm883994lfg.139.2022.01.15.06.41.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 Jan 2022 06:41:44 -0800 (PST) In-Reply-To: Content-Language: en-US X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Yr/Ajnbj"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::130 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:29982 Archived-At: Here with pandoc 2.16.2 `[TEXT](URL)` is automatically turned into `TEXT ` in plain output, being smart enough to do the right thing if the URL appears in the link text or if it was `` already. Anyway attached is a Lua filter which I use to get the same effect in other output formats. Unless you are running a very old version of pandoc it should do what you want unless pandoc does it already. On 2022-01-14 12:20, Peter Mueller wrote: > Hello together. > > I'm working on a project where we use one input markdown file to create > HTML but also TXT files. > The problem I have is with markdown hyperlinks in the form of [](). > > While for the output format html they are kept: > *$ echo "prefix [this is a link](www.google.de) suffix" | pandoc -f > markdown -t html* > *

prefix this is a link suffix

* > > the url is completely removed for plain output: > *$ echo "prefix [this is a link](www.google.de) suffix" | pandoc -f > markdown -t plain* > *prefix this is a link suffix* > > Is there a way/plugin to keep the url within the plain output? > (e.g. by keeping the markdown [this is a link](www.google.de) as it is, > but handling all other markdown as usual?) > > Thank you > Peter >