Skip to content

Commit

Permalink
Add missing style from Pandoc for CSL hanging-indent
Browse files Browse the repository at this point in the history
Same as #1277 for bs4_book

fix one of the report at #1422
  • Loading branch information
cderv committed Apr 17, 2023
1 parent 0d3eca4 commit e8dfa70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: bookdown
Type: Package
Title: Authoring Books and Technical Documents with R Markdown
Version: 0.33.2
Version: 0.33.3
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
person("Christophe", "Dervieux", , "cderv@posit.co", role = c("ctb"),
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# CHANGES IN bookdown VERSION 0.34

- Fix an issue with CSL using hanging indent style in `gitbook()` (thanks, @pablobernabeu, #1422).

# CHANGES IN bookdown VERSION 0.33

Expand Down
4 changes: 4 additions & 0 deletions inst/templates/gitbook.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
</style>
$endif$

<style type="text/css">
$-- Taken From Pandoc 'styles.html'
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
</style>
$if(csl-css)$
<style type="text/css">
/* Used with Pandoc 2.11+ new --citeproc when CSL is used */
Expand Down

0 comments on commit e8dfa70

Please sign in to comment.