Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subtree anchors get set to the page/file ID if using org-id as anchors #556

Closed
kaushalmodi opened this issue Feb 10, 2022 · 0 comments · Fixed by #557
Closed

Subtree anchors get set to the page/file ID if using org-id as anchors #556

kaushalmodi opened this issue Feb 10, 2022 · 0 comments · Fixed by #557

Comments

@kaushalmodi
Copy link
Owner

kaushalmodi commented Feb 10, 2022

Test cases are in #542 (comment) .

The issue can be reproduced after evaluating

(with-eval-after-load 'ox-hugo
  (setq org-hugo-anchor-functions '(org-hugo-get-custom-id
                                    org-hugo-get-id
                                    org-hugo-get-heading-slug
                                    org-hugo-get-md5)))

and exporting this file:

:PROPERTIES:
:ID:       31c61d47-0afc-4d5c-9b60-6c154a1c518d
:END:
#+title: PL
#+hugo_base_dir: .
#+options: author:nil

* Features
** TSL
:PROPERTIES:
:ID:       48e6dfd4-93d9-4811-855e-c739470e83d1
:END:

Current markdown output

+++
title = "PL"
draft = false
+++

## Features {#31c61d47-0afc-4d5c-9b60-6c154a1c518d}


### TSL {#31c61d47-0afc-4d5c-9b60-6c154a1c518d}

Expected markdown output

+++
title = "PL"
draft = false
+++

## Features {#features}


### TSL {#48e6dfd4-93d9-4811-855e-c739470e83d1}
@kaushalmodi kaushalmodi changed the title Parent subtree gets ID of a child subtree if using org-id as anchors Subtree anchors get set to the page/file ID if using org-id as anchors Feb 10, 2022
kaushalmodi added a commit that referenced this issue Feb 10, 2022
Get the id *after* moving the point to the beginning of the element.

Fixes #556
kaushalmodi added a commit that referenced this issue Feb 16, 2022
Exporting a tikz diagram using dvisvgm
kaushalmodi added a commit that referenced this issue Feb 17, 2022
Get the id *after* moving the point to the beginning of the element.

Fixes #556
kaushalmodi added a commit that referenced this issue Feb 17, 2022
Get the id *after* moving the point to the beginning of the element.

Fixes #556
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant