Skip to content

Commit

Permalink
Use h1 'category' if specified
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelloharawild committed Dec 13, 2023
1 parent 3bb97a1 commit 8903f28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inst/header.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ function process_header (elem)
elem.attributes.name = pandoc.utils.stringify(elem.content[1])
if (elem.level == 1) then
elem.attributes.type = 'category'
elem.attributes.category = elem.identifier
if (elem.attributes.category == nil) then
elem.attributes.category = elem.identifier
end
end
if (elem.attributes.type == nil) then
elem.attributes.type = 'cloze'
Expand Down

0 comments on commit 8903f28

Please sign in to comment.