Skip to content

Commit

Permalink
Fix question names only using first word
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelloharawild committed Apr 18, 2024
1 parent db21949 commit 6cf4733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/header.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function header_questions(doc)
category_idx = category_idx + 1

el.classes = {'question'}
el.attributes.name = pandoc.utils.stringify(el.content[1])
el.attributes.name = pandoc.utils.stringify(el.content)

in_question = (el.level == 2)
if (not in_question) then
Expand Down

0 comments on commit 6cf4733

Please sign in to comment.