Skip to content

Commit

Permalink
Fix missing \url in bibliography (Fix #12)
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed Mar 8, 2022
1 parent 4f20f09 commit b34ef02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Fix the incompatibility with `babel` ([#9](https://github.com/zepinglee/citeproc-lua/issues/9)).
- Fix missing `\url` commands in bibliography ([#12](https://github.com/zepinglee/citeproc-lua/issues/12)).

## [v0.1.0] - 2022-01-22

Expand Down
4 changes: 4 additions & 0 deletions citeproc/citeproc-node-text.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ function Text:render (item, context)
res = richtext.new(res)
end

if res and variable_name == "URL" then
res:add_format("URL", "true")
end

res = self:strip_periods(res, context)
res = self:case(res, context)
res = self:format(res, context)
Expand Down

0 comments on commit b34ef02

Please sign in to comment.