File tree 2 files changed +5
-2
lines changed 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
- Fix an issue with CSL using hanging indent style in ` gitbook() ` (thanks, @pablobernabeu , #1422 ).
4
4
5
+ - Adapt an ` epub_book() ` internal command-line argument passed to Pandoc for changes from version 3.0 and above (#1425 ).
6
+
5
7
- Fix an issue with Pandoc 2.19 not rendering math by default in ` epub3 ` format (#1417 ).
6
8
7
9
# CHANGES IN bookdown VERSION 0.33
Original file line number Diff line number Diff line change @@ -46,8 +46,9 @@ epub_book = function(
46
46
if (! is.null(cover_image )) c(' --epub-cover-image' , cover_image ),
47
47
if (! is.null(metadata )) c(' --epub-metadata' , metadata ),
48
48
if (! identical(template , ' default' )) c(' --template' , template ),
49
- if (! missing(chapter_level )) c(' --epub-chapter-level' , chapter_level ),
50
- if (rmarkdown :: pandoc_available(" 2.19" ) && epub_version == " epub3" ) c(" --mathml" )
49
+ if (rmarkdown :: pandoc_available(' 2.19' ) && epub_version == ' epub3' ) c(' --mathml' ),
50
+ if (! missing(chapter_level ))
51
+ c(if (rmarkdown :: pandoc_available(' 3.0' )) ' --split-level' else ' --epub-chapter-level' , chapter_level )
51
52
)
52
53
if (is.null(stylesheet )) css = NULL else {
53
54
css = rmarkdown :: pandoc_path_arg(epub_css(stylesheet ))
You can’t perform that action at this time.
0 commit comments