-
Notifications
You must be signed in to change notification settings - Fork 133
Description
Actual Behavior
While org-export-with-priority is t, it strips it out from the resulting ox-hugo markdown.
Expected Behavior
Priorities exported when org-export-with-priority is t
How to Reproduce the Issue
Create a test file, try export org-hugo-export-as-md
Example Org File
#+title: Test
#+author: Justin
#+date: 2024-07-30
- [#A] Test Headline
Generated Markdown File or Error
---
title: "Test"
author: ["Justin"]
date: 2024-07-30
lastmod: 2024-07-30T04:07:42-04:00
draft: false
creator: "Emacs 29.4 (Org mode 9.8 + ox-hugo)"
---
## Test Headline {#test-headline}
I'll post the debug info if requested, but I think it's not a error(?) as I spent some time examining traces and checking if I had some sort of default, I noticed in ox-hugo.el there's a function
(defun org-hugo--heading-title (style level loffset title &optional todo tags anchor numbers)
...
I wasn't sure if this was the catalyst or if for some reason the priority further down doesn't seem to get run at all, and it's the only one it does this for.
I simply added it back into the function and it seems to work, so I was curious if it was omitted due to a break or such.
See:
(defun org-hugo--heading-title (style level loffset title &optional todo tags anchor numbers priority)
"Generate a heading title in the preferred Markdown heading style.
(heading-title (org-hugo--heading-title style level loffset title
todo-fmtd tags-fmtd anchor numbers priority))
Edit: It was pointed out on social media that :with-priority is honored, but It feels weird that export-with-priority is the only thing this doesn't work for - leaving up just in case, will close if it's by design