[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH][oc-csl] Improve reference parsing
From: |
Ihor Radchenko |
Subject: |
Re: [PATCH][oc-csl] Improve reference parsing |
Date: |
Thu, 27 Oct 2022 04:10:57 +0000 |
András Simonyi <andras.simonyi@gmail.com> writes:
> the attached patch improves the parsing and exporting of cite
> prefixes, suffixes and locators -- the most noticeable change is
> probably the support for formatted locators and of underlining in
> general. Comments are welcome.
Thanks!
> +(defconst org-cite-csl--export-backend
> + (org-export-create-backend
> + :transcoders
> + '((plain-text . (lambda (text _info) text))
> + (bold . (lambda (_bold contents _info) (concat "<b>" contents "</b>")))
> + (italic . (lambda (_italic contents _info) (concat "<i>" contents
> "</i>")))
> + (underline . (lambda (_underline contents _info)
> + (concat "<span class=\"underline\">" contents "</span>")))))
> + "Custom backend for exporting citation affixes and locators.")
This will render e.g. strike-through empty.
Note that citation references may contain the following Org markup objects:
'(bold code entity italic
latex-fragment strike-through subscript
superscript underline verbatim)
And we may add more, as discussed in
https://orgmode.org/list/87k04xhhw3.fsf@localhost
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>