Markus Huber-Liebl <markus.hu...@b-tu.de> writes: > Subject: [PATCH] ox-md.el: Respect `:html-prefer-user-labels' for target type > > * lisp/ox-md.el (org-md-link): Use `raw-path' as reference for > targets to match behaviour of `org-html-target'. > > `org-md-link' always called `org-export-get-reference' regardless of > the `:html-prefer-user-labels' option. This let to a mismatch of the > used references.
Thanks for the patch, but I think it only partially solves the problem. You addressed targets, but not radio-targets and named references. I think that it will be more appropriate to call `org-html--reference' directly rather than trying to repeat its logic. Same for headings. Also, this is a breaking change, so please add a notice to etc/ORG-NEWS file. -- Ihor Radchenko // yantar92, Org mode maintainer, 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>