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

Exporting priorities #744

Open
brickfrog opened this issue Jul 30, 2024 · 0 comments
Open

Exporting priorities #744

brickfrog opened this issue Jul 30, 2024 · 0 comments

Comments

@brickfrog
Copy link

brickfrog commented Jul 30, 2024

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

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

No branches or pull requests

1 participant