Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for a subtitle field placed directly under title #482

Merged
merged 2 commits into from
Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: distill
Title: 'R Markdown' Format for Scientific and Technical Writing
Version: 1.5.3
Version: 1.5.4
Authors@R: c(
person("Christophe", "Dervieux", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-4474-2498")),
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- Fix an issue with line numbering on code chunks when `highlight-downlit: false` by tweaking Pandoc's default CSS rules (thanks, \@SES-CE, #473).
- Internally use `format()` instead of `as.character()` with Dates to account for argument \`format=\` deprecation in R 4.3.0 (thanks, \\\@mbojan, #488).
- Add a \`subtitle\` variable in HTML template placed between title and categories (thanks, \\\@dicook, #480).

# distill 1.5 (CRAN)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@

<div class="d-title">
<h1>$pagetitle$</h1>
$if(subtitle)$<p class="subtitle">$subtitle$</p>$endif$
<!--radix_placeholder_categories-->
$if(categories)$
<div class="dt-tags">
Expand Down