-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #567 from kaushalmodi/fix-links-to-headings-with-i…
…d-anchors fix: org-id links to headings with ID as anchors
- Loading branch information
Showing
5 changed files
with
67 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
:PROPERTIES: | ||
:ID: 31c61d47-0afc-4d5c-9b60-6c154a1c518d | ||
:END: | ||
#+title: Issue # 542 | ||
#+hugo_section: issues | ||
#+hugo_base_dir: ../../ | ||
|
||
#+author: | ||
|
||
#+filetags: org_id link anchor heading | ||
|
||
#+macro: issue =ox-hugo= Issue #[[https://github.com/kaushalmodi/ox-hugo/issues/$1][$1]] | ||
|
||
#+begin_description | ||
Test links to headings whose anchors are derived from org-id's. | ||
#+end_description | ||
|
||
{{{issue(542)}}} | ||
|
||
- [[id:04e97225-6956-4554-b812-ee0e52921c7a][Link]] to a heading that has both CUSTOM_ID and ID set. | ||
- [[id:909536ed-b636-4bb9-9cc6-6a06992d8853][Link]] to a heading that has only the ID set. | ||
|
||
* Local Variables :ARCHIVE:noexport: | ||
#+bind: org-hugo-anchor-functions (org-hugo-get-custom-id org-hugo-get-id org-hugo-get-heading-slug org-hugo-get-md5) | ||
# Local Variables: | ||
# org-export-allow-bind-keywords: t | ||
# End: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
+++ | ||
title = "Issue # 542" | ||
description = "Test links to headings whose anchors are derived from org-id's." | ||
tags = ["org-id", "link", "anchor", "heading"] | ||
draft = false | ||
+++ | ||
|
||
`ox-hugo` Issue #[542](https://github.com/kaushalmodi/ox-hugo/issues/542) | ||
|
||
- [Link]({{< relref "issue-556.md#heading-abc" >}}) to a heading that has both CUSTOM_ID and ID set. | ||
- [Link]({{< relref "issue-556.md#909536ed-b636-4bb9-9cc6-6a06992d8853" >}}) to a heading that has only the ID set. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters