From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GLdqOYlMOmTWgAEASxT56A (envelope-from ) for ; Sat, 15 Apr 2023 09:04:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KGQrOYlMOmSebQAAauVa8A (envelope-from ) for ; Sat, 15 Apr 2023 09:04:41 +0200 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 54EE516C94 for ; Sat, 15 Apr 2023 09:04:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnZwy-00004u-4h; Sat, 15 Apr 2023 03:03:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnZww-0008WR-Pw for emacs-orgmode@gnu.org; Sat, 15 Apr 2023 03:03:54 -0400 Received: from mx1.riseup.net ([198.252.153.129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnZwu-0007aL-ME for emacs-orgmode@gnu.org; Sat, 15 Apr 2023 03:03:54 -0400 Received: from fews01-sea.riseup.net (unknown [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4Pz46Z26gpzDsQW; Sat, 15 Apr 2023 07:03:50 +0000 (UTC) X-Riseup-User-ID: 6BB755AB6F1C5E71C4DBBCA811B9034B90B6B4A0A99693614D17C326EF782FA5 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4Pz46Y4r9qzJqJJ; Sat, 15 Apr 2023 07:03:49 +0000 (UTC) References: From: Hanno Perrey To: Janek Fischer Cc: emacs-orgmode@gnu.org Subject: Re: Feature request: Allow export to convert broken links to plain text Date: Sat, 15 Apr 2023 08:50:27 +0200 In-reply-to: Message-ID: <87v8hxpqy5.fsf@hoowl.se> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=198.252.153.129; envelope-from=hanno@hoowl.se; helo=mx1.riseup.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681542281; a=rsa-sha256; cv=none; b=KfClYv3zxRJ19ViklTVd4GZaTobR2gz7ByNV58Y4b70RVtELLQ1pXRtBexXw8DgWBQi3xc gXPV1G5I3uAPfo+nI/Pp5e5B7Inyqos/zfKAKQcLxZ9BTIlxDWxOsX66Xv7FebRNrlHn1j X+8SPP8GjUrCxjRxY7RRoMxDCd95UkJbneVAs/i+3OED1aMFl1yO/S/SXHHeYSOwJ71WN+ k/0fB32adUqyNlakZVKWUnlPglbNt/b81GZEtxTjzY5TkWUTG8+LgPYO2Q7bR8+BAwIra7 +PR5dW9DyXmvurnU4QcpZp22x3qGRmw8mYkaZ7/N4PloFmQd0JWOTKcHMTGCtA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681542281; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=HRmp8R5BNgMO/w+/xKisuOj/9wX42dbGjZq3MQzUJ/Y=; b=HXPVMhOTZu/ya/tzdUDwQKr2HLaqV/liGYmfR3PgIrDoYXL4aphBa8Ng2R1Ead5FT8xigO stBTn8CJULs2R1qGZmtGXcD4AX6TaSM4zB6BFTumjpPXgvcYCgmi7PHU6CjUJ+XcuqcLDj /ZWjMOxjSV/61IU5sHhZFUQFRzOdWnqfUoXQ9kP3AIozu+jf0gFF9DgmzpRzxfdZXwpyHI b9nTIAX7JbHQryay4483Qyr/SsNBsDvUe0zj0fsI8kiKzeuflrc+JVUan8BrgWORLaujXX gQekQCldsa06T8wqtSVgpI2SzPGYE4n5e9iA49mTxhbocw7JLQYECOQlzidVrg== X-Migadu-Queue-Id: 54EE516C94 Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.12 X-Spam-Score: -3.12 X-TUID: iR85GS+25s6t Hej Janek, > I have a note with many links, but would like to export that note as > landing page as text stripped of links. I have had a similar need recently where I wanted to export a document filled with inks to org-roam nodes and other org headlines via id links. I was able to strip the links on export for just this type while preserving other link types: #+begin_src emacs-lisp (defun my-link-remover (link contents info) contents) (org-link-set-parameters "id" :export 'my-link-remover) #+end_src This could of course be extended to actually check the link and only remove it if it points to nowhere. Hope this points you in a useful direction! Best wishes, Hanno -- Hanno Perrey https://hoowl.se