From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gDfgCJNknmZ9vQAAqHPOHw:P1 (envelope-from ) for ; Mon, 22 Jul 2024 13:54:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gDfgCJNknmZ9vQAAqHPOHw (envelope-from ) for ; Mon, 22 Jul 2024 15:54:27 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jihGTrjs; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1721656467; 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:dkim-signature; bh=rcGMlJj8+3tN8kt9JZbK8TeFEHqpH5lmO1edayVvOSw=; b=dDzCHA/5uYo+NexAInLrw2dmDmsm3/AFmmzpANNfTVIOUtl4WVjKcXgdKs8U0bC9SRFm5G 7RR62TXRnnbaKQp0K2Q+RZ916nZfpJ0KNngPDQbHvrTZCO5vpIY1EbLI2pCXYY85ypkn7A ObHUwNsXyZIjSqt3BQmROvJyFMWpyMsP/jBgXgPfZIMNarRkNSYIkqIW1LTdb+SYnmm+iM qQf17Iab4/3yYSMMgmg/sLmBZNPyn1hLwl+jI6wGUrFk2nZc0rbbrKEuSa8u97fHRELQ86 +vWKo7kDv1MCahEuk6nElwtfaaJQGM3QUkcm0kzFFLKgTuiKs9RNcTVpxrANHA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721656467; a=rsa-sha256; cv=none; b=bfRUock5c91mKJY5T1V5Cy2c33BhZPvhnBySIH+zFzsSHzKI9nJD2jmz179NnXExkDIEXU Dw5kJmBGlBwEo1G+xECi4wCMUfjni8YXBAKqNddExfUBRqTfxD5tPAsRjGUgtTyH4M2VgV TQVIZTSzHLdJ1EdtMVxwNllDqMpLLzZ2SQbTg6HUym3mdY/Je5Lke6JrETxbxCsBjbfHwM 5BRs6Q1xHu0LpWeTAOsvuWwk/rbAuTfozInZ8CrULyGUc1O5UIBm2pzCCDwNmsUwHI40n5 EArw9CzWrgANq2HlbfXMLd2npBq9cKVLn7JxLovZq0FWch086oS2CFIO3SzvWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jihGTrjs; dmarc=pass (policy=none) header.from=posteo.net; 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" 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 09B626FDB7 for ; Mon, 22 Jul 2024 15:54:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sVtU3-0001OE-3r; Mon, 22 Jul 2024 09:53:47 -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 1sVtTt-0000uQ-4C for emacs-orgmode@gnu.org; Mon, 22 Jul 2024 09:53:39 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sVtTp-0006il-MX for emacs-orgmode@gnu.org; Mon, 22 Jul 2024 09:53:36 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C4EC8240101 for ; Mon, 22 Jul 2024 15:53:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1721656410; bh=O9kqHFuZ3sgDquhtkPvksokZGf3hLsia7gS3ZlaPqcU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=jihGTrjspTe6xKUJZdoYR3tMJj42LQqkVNKOKwLlsSwnxLVNbfetCwlDwdOcylAAh 8c0eWU6Vy5LQICRWvlxIC033mAVnOy9LkT45UDNJWQZ44WEAnCu30+4gKOij/lhB7Z nXzK8qbzafDZAV8/S1E0Ow6pVZRuWKpC3ABP0mSGq3VzUq8Ozui0wXOhvL4YB+cWmc eyl9IG5p3vgaFDrsc63w+7FXRvnY4Y3QMUVMh6DeWugyqhlVn1r+5DM7hNAUprbh4f PJRCFirYI+qL+C2IH49vjfIc49+8wdljpi31w6tqy3v+9dHeIumjLREg5iiiK8y/13 /fVpiN0l/wYWQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WSMF548CSz9rxN; Mon, 22 Jul 2024 15:53:29 +0200 (CEST) From: Ihor Radchenko To: rswgnu@gmail.com Cc: emacs-org list Subject: Re: How to fully control parsing of Org mode links during export In-Reply-To: References: Date: Mon, 22 Jul 2024 13:54:57 +0000 Message-ID: <87ikwxmszy.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.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 X-Migadu-Queue-Id: 09B626FDB7 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.34 X-Spam-Score: -9.34 X-TUID: C45+JwDsZEhg Robert Weiner writes: > I could really use some help from Org export experts. I have > been trying to tweak export link parsing to do what I want > without any success. Here is a summary of the issues and related > questions I have. You generally should not need to modify the _parser_. What you may need to do is modifying the exporter. For example, by defining a custom export backend. Or export filter. See "13.17 Advanced Export Configuration" section of the manual. > 3. When exporting from an Org file and I have defined the html export > syntax for mytype: to html, I want this: > [[mytype:MyLink]] > [[Testing]] > to be converted into this: > MyLink > Testing > but instead Org export produces: > MyLink.html">mytype: href="Testing.html">Testing This has nothing to do with Org mode exporter. What is produced for custom link types totally depends on the custom :export function you defined for your link. > 2. How can I get the exporter to run in my current Emacs process and > spawn a new Emacs so that I can easily debug in-process? I think I have > turned off the async export option but it still runs async and I can't > step through the exporter functions. Async is disabled by default. So, something in your config enables it. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at