emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC][PATCH v2] Allow to export to ascii custom link types as notes


From: Max Nikulin
Subject: [RFC][PATCH v2] Allow to export to ascii custom link types as notes
Date: Wed, 25 Oct 2023 22:16:41 +0700
User-agent: Mozilla Thunderbird

On 23/10/2023 19:09, Ihor Radchenko wrote:
+           (if (string-match-p "\\`\u200b*\\[.*\\]\u200b*\\'" anchor)
+               anchor
+            (format "[%s]" anchor))

I did not mean unrelated to ox-ascii. I meant unrelated to "add new
feature allowing more flexibility for :export property of links when
exporting to ASCII".

Since "ox-ascii.el: Consistently add brackets around links" has been committed, this regexp is not necessary to preserve inconsistencies in link formatting. Avoiding duplication of brackets was just a bonus.

See next version of the draft. Functions are still not documented.

`cons' is made an implementation detail, however completely opaque structure is an obstacle for derived export backend. Perhaps getter functions should be introduced as well.

Attachment: 0001-test-ox-ascii.el-Test-custom-links.patch
Description: Text Data

Attachment: 0002-ox-ascii.el-Refactor-link-export.patch
Description: Text Data

Attachment: 0003-ox-ascii.el-Allow-to-export-custom-links-as-notes.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]