From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ZhAQHZ0czWAJ7wAAgWs5BA (envelope-from ) for ; Sat, 19 Jun 2021 00:22:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iB/rF50czWAHVQAAB5/wlQ (envelope-from ) for ; Fri, 18 Jun 2021 22:22:21 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AB4191824F for ; Sat, 19 Jun 2021 00:22:20 +0200 (CEST) Received: from localhost ([::1]:39534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1luMsV-00026V-LQ for larch@yhetil.org; Fri, 18 Jun 2021 18:22:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luMs7-00026J-2n for emacs-orgmode@gnu.org; Fri, 18 Jun 2021 18:21:55 -0400 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]:53836) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1luMs5-0002c2-DW for emacs-orgmode@gnu.org; Fri, 18 Jun 2021 18:21:54 -0400 Received: by mail-pj1-x1031.google.com with SMTP id bb20so2380241pjb.3 for ; Fri, 18 Jun 2021 15:21:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=oBvTyP/5kGrcT6KHniecMc4y6vJyoqoocXyLzcNxugY=; b=nAaIzlO0P7Gqs1xZchQgWhzEPWdgvbWTryM0eG1a+UYWdbcELZAdU+0G5rDjOcXnDL 6C38N3vydlZ9MtXmVq+d/dCB2e3O3m6O4dTJUUWKyP0fgBRIN7wqd2sfQO70KXojV3kP qsYJ4wHj4y8T2ps6HdHD4dEvbiUBhzoWo5VSek5SfV9PAAsGaVfe55xb5ArAfJp6jNcp CKH8OWmRR7FtpCQRNSWQkucqEOZlVtkemkzJp5g0MwyiRjhetwlf8h50/TzJnSPneRsE apjYOy+Eda0g2ORR46L4qqpZMP3gaxcETFgKf+lPZ9rLJb1Ip4LAeH8p07zfbcIw03h2 Muew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=oBvTyP/5kGrcT6KHniecMc4y6vJyoqoocXyLzcNxugY=; b=el6DEl8l+7mNySyHeS7EKhi3pilISnZwQI31XlFFg2Cpx+UM4UTEP+1LwlMHA1a+Ve 6zrh+ff9Nw6A7UiCv2vJVJZBGiMHNGrk3ZmvfPzr9accundvJO25i3LJw8udvigRdx3v m9U+00KG7xHj5W2Y11aZvVJNApfUBBSywr7pe3Vd1jvaeLGgsNzgyfnYjvXS8y8UiK0n H6zk9/rRelkUu07jL5WPTDnpufJQMzEjHMPHDRvqNs1W9MLEoBLD+5a+RYkdxtOtWucT LAiPWjR39euoBQCFQcmMgQovPacD8uJz4BS4EUhiLxgICcf6OI/AuI3GY2V1Sj98O6R6 gRdg== X-Gm-Message-State: AOAM531BU4o//O+Df21ERMUbIO9cWBqq+nvQxuy6MFGXpCstCvkLExn+ XdQBrGerM5NFvTtFZmZEEHhto0KvsW4= X-Google-Smtp-Source: ABdhPJxTBZG/3xVRgf7BVKtFqgD4FKs8VJ9+7659waEnLUFwAiru/MdYBaVkrlYWpnWzXg/GefyWsQ== X-Received: by 2002:a17:902:7085:b029:114:557b:fb02 with SMTP id z5-20020a1709027085b0290114557bfb02mr6754613plk.14.1624054911362; Fri, 18 Jun 2021 15:21:51 -0700 (PDT) Received: from tim-desktop (106-69-82-36.dyn.iinet.net.au. [106.69.82.36]) by smtp.gmail.com with ESMTPSA id q12sm10126488pgc.25.2021.06.18.15.21.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Jun 2021 15:21:50 -0700 (PDT) References: <87im2kl0cz.fsf@posteo.net> User-agent: mu4e 1.5.13; emacs 27.2.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: Failure to resolve internal links on ox-html export? Date: Sat, 19 Jun 2021 08:18:13 +1000 In-reply-to: Message-ID: <87wnqq24qr.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=theophilusx@gmail.com; helo=mail-pj1-x1031.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624054940; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=oBvTyP/5kGrcT6KHniecMc4y6vJyoqoocXyLzcNxugY=; b=fZU31SawAS1umD1c/HGEbol0d7trCI5XUSfI3qm0b5q75QdpZ+u/kYZujmsKgYLJJRAtyP eWIB6kQaRg9xvT7wRdiI2scjbI9fEAhwnq3L9oT8EFpICFwGRC5+EwSSu4fOKXp92oSVeu sZiCRjlZJ7zHm6/0g4T9AIZ9ORG756UpHY1ORQzI9YbUwLKEnlG+kKQjzQr7HrbXcXunoJ aQaXQfGNMNhwTP7+NhQ8lueP2QlH8XTqTPnni5L9q5ohCzwAyoqY3ktKP29esMw+RzYCcp 8AUg76wfpnWPW60wX+z7PBU582UUvQwg2xbqO0uCtgEfppMsqkckPsZYeAUAVA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624054940; a=rsa-sha256; cv=none; b=Ja5yJ0h25RVG5/FU9rgs0xUNzhSvlOiZRpJ9HSURskZvWHa6DEzXxufQaJqZNu+Jf5Jo83 r7fQEjzVK+q+AxrRB3BXGEb2csKSC3Ao9dX2ujtH9XKupLWGzUoi007wjTJhBzJbJxXlLH Q3tFv7ZlgmyFEHr3O87mTpK8mzgeufMtS3fP61rSUGqsOizkYTz3arqzL+4EMlONacHy3Z 5q6M9/oX5zDEhF84wuoHVh8oWvcAjvGIUXePAX/kM0eHL9HnEMRcQphqia568X80bVb3PM /Kb0S/cXHsKJVzF5mFTfZi60V4jGrnpopP8l3gOBlcRE2Ys7yUnroDi2epafrw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=nAaIzlO0; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=nAaIzlO0; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: AB4191824F X-Spam-Score: -0.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: i9IuMHjt8hdO Tim Visher writes: > Hi Juan Manuel, > > On Fri, Jun 11, 2021 at 2:31 PM Juan Manuel Mac=C3=ADas wrote: > > Try setting this variable to non-nil: > > (setq org-export-with-broken-links t) > > Thanks for the tip here! This is definitely close to what I want. I think= I'm going to need to code up something additional though in that none of t= he > default options (mark or ignore) are really the behavior that I want. > > - mark: I don't like the way the text comes out here. I don't want to hav= e BROKEN LINK in the exported text at all. > - ignore: I don't like how the text of the link simply disappears in this= case. > > What I really want is something that keeps the link text but drops the li= nk, essentially converting it into plain text (or stylized text if the link= text is in > markup). > > I'll have to play around with how to do that. Although I've never used them, I think export filters sound like they might be what you want. Have a look at the Advanced Export configuration section of the manual and how to define export filters. You should be able to define an org-export-filter-link-function that will tranform links into just the title text from the original link. --=20 Tim Cross