Skip to content

Commit f411567

Browse files
authored
Merge pull request #51 from ali-ramadhan/devCitation
Intermediate fix for #50
2 parents a5513b0 + b2d2829 commit f411567

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DocumenterCitations"
22
uuid = "daee34ce-89f3-4625-b898-19384cb65244"
3-
version = "0.2.9"
3+
version = "0.2.10"
44

55
[deps]
66
Bibliography = "f1be7e48-bf82-45af-a471-ae754a193061"

src/citations.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ function expand_citation(link::Markdown.Link, meta, page, doc)
3838
# Replace the `@cite` url with a path to the referenced header.
3939
anchor = Anchors.anchor(headers, entry.id)
4040
path = relpath(anchor.file, dirname(page.build))
41-
link.text = xnames(entry) * " (" * xyear(entry) * ")"
41+
authors = xnames(entry) |> tex2unicode
42+
link.text = authors * " (" * xyear(entry) * ")"
4243
link.url = string(path, Anchors.fragment(anchor))
4344
return true
4445
else
@@ -59,4 +60,3 @@ function expand_citation(link::Markdown.Link, meta, page, doc)
5960
end
6061

6162
expand_citation(other, meta, page, doc) = true # Continue to `walk` through element `other`.
62-

0 commit comments

Comments
 (0)